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/2860
Liang Dinge54caf232f50
diff --git a/kernel/model/blockial.go b/kernel/model/blockial.goindex 34cbd7aff0..af7a51ee45 100644--- a/kernel/model/blockial.go+++ b/kernel/model/blockial.go@@ -55,8 +55,9 @@ func GetHeadingLevelTransaction(id string, level int) (transaction *Transaction,}diff := level - hLevel- children := treenode.HeadingChildren(node)- var childrenHeadings []*ast.Node+ var children, childrenHeadings []*ast.Node+ children = append(children, node)+ children = append(children, treenode.HeadingChildren(node)...)for _, c := range children {if ast.NodeHeading == c.Type {childrenHeadings = append(childrenHeadings, c)