An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: https://github.com/siyuan-note/siyuan/issues/15458
Daniel41b8271c5d9c
diff --git a/kernel/model/export.go b/kernel/model/export.goindex f58fb33802..b815b95152 100644--- a/kernel/model/export.go+++ b/kernel/model/export.go@@ -2012,8 +2012,16 @@ func exportMarkdownContent(id, ext string, exportRefMode int, defBlockIDs []strireturn}- if ast.NodeParagraph == tree.Root.FirstChild.Type {- isEmpty = nil == tree.Root.FirstChild.FirstChild+ for c := tree.Root.FirstChild; nil != c; c = c.Next {+ if ast.NodeParagraph == c.Type {+ isEmpty = nil == c.FirstChild+ if !isEmpty {+ break+ }+ } else {+ isEmpty = false+ break+ }}exportedMd = exportMarkdownContent0(id, tree, "", false, false, false,