Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Code appears when pasted as plain text Fix https://github.com/siyuan-note/siyuan/issues/10435

Danielb22624b417b6
diff --git a/app/src/protyle/render/setLute.ts b/app/src/protyle/render/setLute.ts
index 09753c9211..b1bd572d12 100644
--- a/app/src/protyle/render/setLute.ts
+++ b/app/src/protyle/render/setLute.ts
@@ -3,6 +3,7 @@ export const setLute = (options: ILuteOptions) => {
lute.SetSpellcheck(window.siyuan.config.editor.spellcheck);
lute.SetProtyleMarkNetImg(window.siyuan.config.editor.displayNetImgMark);
lute.SetFileAnnotationRef(true);
+ lute.SetHTMLTag2TextMark(true);
lute.SetTextMark(true);
lute.SetHeadingID(false);
lute.SetYamlFrontMatter(false);
diff --git a/app/src/types/protyle.d.ts b/app/src/types/protyle.d.ts
index 5a7f5a078a..89a736e9ab 100644
--- a/app/src/types/protyle.d.ts
+++ b/app/src/types/protyle.d.ts
@@ -172,6 +172,8 @@ declare class Lute {
public SetTextMark(enable: boolean): void;
+ public SetHTMLTag2TextMark(enable: boolean): void;
+
public SetHeadingID(enable: boolean): void;
public SetProtyleMarkNetImg(enable: boolean): void;