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: The super block below the folded heading contains headings of the same level and cannot be loaded Fix https://github.com/siyuan-note/siyuan/issues/9162
Danielccc9bc6518d2
diff --git a/kernel/treenode/heading.go b/kernel/treenode/heading.goindex 6527fe26f3..b90bffd88b 100644--- a/kernel/treenode/heading.go+++ b/kernel/treenode/heading.go@@ -58,6 +58,24 @@ func MoveFoldHeading(updateNode, oldNode *ast.Node) {}func IsInFoldedHeading(node, currentHeading *ast.Node) bool {+ if nil == node {+ return false+ }++ if ast.NodeSuperBlock == node.Type {+ // The super block below the folded heading contains headings of the same level and cannot be loaded https://github.com/siyuan-note/siyuan/issues/9162+ if nil == currentHeading {+ return false+ }++ sbChildHeading := SuperBlockHeading(node)+ if nil != sbChildHeading {+ if sbChildHeading.HeadingLevel <= currentHeading.HeadingLevel {+ return false+ }+ }+ }+heading := HeadingParent(node)if nil == heading {return false