mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-22 09:30:14 +01:00
This commit is contained in:
parent
216dc408ff
commit
f5ddcd2bbb
6 changed files with 29 additions and 41 deletions
|
|
@ -73,8 +73,8 @@ export const initUI = (protyle: IProtyle) => {
|
|||
wheelTimeout = window.setTimeout(() => {
|
||||
fetchPost("/api/setting/setEditor", window.siyuan.config.editor);
|
||||
if (window.siyuan.config.editor.codeSyntaxHighlightLineNum) {
|
||||
protyle.wysiwyg.element.querySelectorAll(".code-block .protyle-linenumber").forEach((block: HTMLElement) => {
|
||||
lineNumberRender(block);
|
||||
protyle.wysiwyg.element.querySelectorAll(".code-block .protyle-linenumber__rows").forEach((block: HTMLElement) => {
|
||||
lineNumberRender(block.parentElement);
|
||||
});
|
||||
}
|
||||
}, Constants.TIMEOUT_LOAD);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue