Skip to content

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

:art: Improve fold heading editing 04 https://github.com/siyuan-note/siyuan/issues/16197

Daniel5d0f04b5079f
diff --git a/kernel/model/block.go b/kernel/model/block.go
index d3ac541ad9..3f632e7323 100644
--- a/kernel/model/block.go
+++ b/kernel/model/block.go
@@ -744,6 +744,10 @@ func GetHeadingLevelTransaction(id string, level int) (transaction *Transaction,
fillBlockRefCount(childrenHeadings)
transaction = &Transaction{}
+ if "1" == node.IALAttr("fold") {
+ unfoldHeading(node, node)
+ }
+
luteEngine := util.NewLute()
for _, c := range childrenHeadings {
op := &Operation{}