🎨 块引用与所引用的内容块进行交换 https://github.com/siyuan-note/siyuan/issues/4981
This commit is contained in:
parent
7cfce5e1c1
commit
7ed804f5bb
1 changed files with 1 additions and 1 deletions
|
@ -129,12 +129,12 @@ func SwapBlockRef(refID, defID string, includeChildren bool) (err error) {
|
|||
|
||||
if ast.NodeListItem == defNode.Type {
|
||||
if ast.NodeListItem == refNode.Type {
|
||||
defNode.InsertAfter(refNode)
|
||||
if !includeChildren {
|
||||
for _, c := range defNodeChildren {
|
||||
refNode.AppendChild(c)
|
||||
}
|
||||
}
|
||||
defNode.InsertAfter(refNode)
|
||||
refPivot.InsertAfter(defNode)
|
||||
} else {
|
||||
newID := ast.NewNodeID()
|
||||
|
|
Loading…
Add table
Reference in a new issue