Skip to content

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

:art: Supports disabling Markdown syntax input for some inline elements https://github.com/siyuan-note/siyuan/issues/11141

Danielf09865504621
diff --git a/kernel/util/lute.go b/kernel/util/lute.go
index cadb5757d7..258bddfa33 100644
--- a/kernel/util/lute.go
+++ b/kernel/util/lute.go
@@ -84,6 +84,11 @@ func NewStdLute() (ret *lute.Lute) {
ret.SetGFMAutoLink(false) // 导入 Markdown 时不自动转换超链接 https://github.com/siyuan-note/siyuan/issues/7682
ret.SetImgPathAllowSpace(true)
ret.SetInlineMathAllowDigitAfterOpenMarker(true) // Formula parsing supports $ followed by numbers when importing Markdown https://github.com/siyuan-note/siyuan/issues/8362
+ ret.SetSup(MarkdownSettings.InlineSup)
+ ret.SetSub(MarkdownSettings.InlineSub)
+ ret.SetTag(MarkdownSettings.InlineTag)
+ ret.SetInlineMath(MarkdownSettings.InlineMath)
+ ret.SetGFMStrikethrough1(false)
return
}