This commit is contained in:
Vanessa 2024-08-16 21:47:19 +08:00
parent 1a20840a2a
commit 347d4c7554
3 changed files with 6 additions and 6 deletions

View file

@ -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);
}