mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
🚨
This commit is contained in:
parent
1a20840a2a
commit
347d4c7554
3 changed files with 6 additions and 6 deletions
|
|
@ -89,7 +89,7 @@ export const highlightRender = (element: Element, cdn = Constants.PROTYLE_CDN) =
|
|||
const codeText = block.textContent;
|
||||
if (!isPreview && (lineNumber === "true" || (lineNumber !== "false" && window.siyuan.config.editor.codeSyntaxHighlightLineNum))) {
|
||||
// 需要先添加 class 以防止抖动 https://ld246.com/article/1648116585443
|
||||
block.firstElementChild.classList.add("protyle-linenumber__rows")
|
||||
block.firstElementChild.classList.add("protyle-linenumber__rows");
|
||||
lineNumberRender(block);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue