mirror of
https://gitee.com/vnotex/vnote.git
synced 2025-07-05 13:59:52 +08:00
export: force wrap and word-break for line number of code block
This commit is contained in:
parent
49e2c74122
commit
78b239545b
@ -128,7 +128,9 @@ QString VNote::generateHtmlTemplate(const QString &p_renderBg,
|
||||
"code { word-break: break-all !important; }\n"
|
||||
"div.flowchart-diagram { overflow: hidden !important; }\n"
|
||||
"div.mermaid-diagram { overflow: hidden !important; }\n"
|
||||
"a { word-break: break-all !important; }\n";
|
||||
"a { word-break: break-all !important; }\n"
|
||||
"td.hljs-ln-code { white-space: pre-wrap !important; "
|
||||
"word-break: break-all !important; }\n";
|
||||
if (!g_config->getEnableImageConstraint()) {
|
||||
// Constain the image width by force in PDF, otherwise, the PDF will
|
||||
// be cut off.
|
||||
|
Loading…
x
Reference in New Issue
Block a user