Skip to content

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

:art: Support indented code block syntax when importing Markdown https://github.com/siyuan-note/siyuan/issues/14429

Daniel3a0501a3e572
diff --git a/kernel/util/lute.go b/kernel/util/lute.go
index 6702a94276..00f97f267f 100644
--- a/kernel/util/lute.go
+++ b/kernel/util/lute.go
@@ -87,7 +87,7 @@ func NewStdLute() (ret *lute.Lute) {
ret = lute.New()
ret.SetFootnotes(false)
ret.SetToC(false)
- ret.SetIndentCodeBlock(false)
+ ret.SetIndentCodeBlock(true) // 导入 Markdown 时支持缩进代码块语法 Support indented code block syntax when importing Markdown https://github.com/siyuan-note/siyuan/issues/14429
ret.SetAutoSpace(false)
ret.SetHeadingID(false)
ret.SetSetext(false)