Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
Vanessa 2022-10-17 11:04:28 +08:00
commit c5e3a6ecf4
10 changed files with 62 additions and 35 deletions

View file

@ -116,6 +116,14 @@ export const editor = {
<span class="fn__space"></span>
<input class="b3-switch fn__flex-center" id="codeSyntaxHighlightLineNum" type="checkbox"${window.siyuan.config.editor.codeSyntaxHighlightLineNum ? " checked" : ""}/>
</label>
<label class="fn__flex b3-label">
<div class="fn__flex-1">
${window.siyuan.languages.embedBlockBreadcrumb}
<div class="b3-label__text">${window.siyuan.languages.embedBlockBreadcrumbTip}</div>
</div>
<span class="fn__space"></span>
<input class="b3-switch fn__flex-center" id="embedBlockBreadcrumb" type="checkbox"${window.siyuan.config.editor.embedBlockBreadcrumb ? " checked" : ""}/>
</label>
<label class="fn__flex b3-label">
<div class="fn__flex-1">
${window.siyuan.languages.md33}
@ -224,6 +232,7 @@ export const editor = {
displayBookmarkIcon: (editor.element.querySelector("#displayBookmarkIcon") as HTMLInputElement).checked,
displayNetImgMark: (editor.element.querySelector("#displayNetImgMark") as HTMLInputElement).checked,
codeSyntaxHighlightLineNum: (editor.element.querySelector("#codeSyntaxHighlightLineNum") as HTMLInputElement).checked,
embedBlockBreadcrumb: (editor.element.querySelector("#embedBlockBreadcrumb") as HTMLInputElement).checked,
plantUMLServePath: (editor.element.querySelector("#plantUMLServePath") as HTMLInputElement).value,
katexMacros: (editor.element.querySelector("#katexMacros") as HTMLTextAreaElement).value,
codeLineWrap: (editor.element.querySelector("#codeLineWrap") as HTMLInputElement).checked,

View file

@ -241,6 +241,7 @@ declare interface IEditor {
displayBookmarkIcon: boolean;
displayNetImgMark: boolean;
codeSyntaxHighlightLineNum: boolean;
embedBlockBreadcrumb: boolean;
plantUMLServePath: string;
codeLigatures: boolean;
codeTabSpaces: number;