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

This commit is contained in:
Daniel 2024-02-25 22:16:41 +08:00
parent 0970c63bcd
commit b22624b417
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 3 additions and 0 deletions

View file

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

View file

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