mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 16:40:13 +01:00
This commit is contained in:
parent
d2e6198e21
commit
c79048ad73
9 changed files with 15 additions and 16 deletions
|
|
@ -119,7 +119,7 @@ export const insertHTML = (html: string, protyle: IProtyle, isBlock = false) =>
|
|||
replaceInnerHTML += "\n```";
|
||||
}
|
||||
const languageIndex = replaceInnerHTML.indexOf("```") + 3;
|
||||
replaceInnerHTML = replaceInnerHTML.substring(0, languageIndex) + (window.localStorage["local-codelang"] || "") + replaceInnerHTML.substring(languageIndex);
|
||||
replaceInnerHTML = replaceInnerHTML.substring(0, languageIndex) + (localStorage["local-codelang"] || "") + replaceInnerHTML.substring(languageIndex);
|
||||
|
||||
editableElement.innerHTML = replaceInnerHTML;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue