An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 导入空内容 Markdown 文件时报错 Fix https://github.com/siyuan-note/siyuan/issues/6832
Liang Ding8da31e7b1c7a
diff --git a/kernel/model/box.go b/kernel/model/box.goindex f6ef21498e..1020549a3a 100644--- a/kernel/model/box.go+++ b/kernel/model/box.go@@ -464,6 +464,10 @@ func parseKTree(kramdown []byte) (ret *parse.Tree) {}func genTreeID(tree *parse.Tree) {+ if nil == tree.Root.FirstChild {+ tree.Root.AppendChild(parse.NewParagraph())+ }+ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {if !entering {return ast.WalkContinue