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: Remove the collapsed state of the collapsed heading on paste https://github.com/siyuan-note/siyuan/issues/13232
Daniel50793ad855a1
diff --git a/kernel/model/block.go b/kernel/model/block.goindex bf0bd7a20f..671ccf9be2 100644--- a/kernel/model/block.go+++ b/kernel/model/block.go@@ -547,6 +547,22 @@ func GetHeadingChildrenDOM(id string) (ret string) {nodes := append([]*ast.Node{}, heading)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 {+ return ast.WalkContinue+ }++ n.RemoveIALAttr("heading-fold")+ n.RemoveIALAttr("fold")+ return ast.WalkContinue+ })+ }+ heading.RemoveIALAttr("fold")+ heading.RemoveIALAttr("heading-fold")+luteEngine := util.NewLute()ret = renderBlockDOMByNodes(nodes, luteEngine)return