From 68991a6aef39c5b9e2ed2e9ab7cfe35c3c53d851 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sat, 6 Sep 2025 17:30:35 +0800 Subject: [PATCH] :art: Copy/Cut folded heading changed to copy/cut `Headings and Bottom Blocks` and support multiple headings copy/cut https://github.com/siyuan-note/siyuan/issues/8019 --- kernel/model/block.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/model/block.go b/kernel/model/block.go index 34c1eb694..ed78bb87a 100644 --- a/kernel/model/block.go +++ b/kernel/model/block.go @@ -672,7 +672,6 @@ func GetHeadingChildrenDOM(id string, removeFoldAttr bool) (ret string) { children := treenode.HeadingChildren(heading) nodes = append(nodes, children...) - // 取消折叠 https://github.com/siyuan-note/siyuan/issues/13232#issuecomment-2535955152 for _, child := range children { ast.Walk(child, func(n *ast.Node, entering bool) ast.WalkStatus { if !entering { @@ -685,6 +684,8 @@ func GetHeadingChildrenDOM(id string, removeFoldAttr bool) (ret string) { } return ast.WalkContinue }) + + child.SetIALAttr("parent-heading", id) } if removeFoldAttr {