Skip to content

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

: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

Daniel68991a6aef39
diff --git a/kernel/model/block.go b/kernel/model/block.go
index 34c1eb6940..ed78bb87a5 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 {