🐛 列表项交互引用标题带子级 https://github.com/siyuan-note/insider/issues/1085
This commit is contained in:
parent
e1becd6454
commit
c1bdf59a6d
1 changed files with 3 additions and 0 deletions
|
@ -179,6 +179,9 @@ func SwapBlockRef(refID, defID string, includeChildren bool) (err error) {
|
|||
li.SetIALAttr("id", newID)
|
||||
li.SetIALAttr("updated", newID[:14])
|
||||
li.AppendChild(defNode)
|
||||
for i := len(defNodeChildren) - 1; -1 < i; i-- {
|
||||
defNode.InsertAfter(defNodeChildren[i])
|
||||
}
|
||||
refPivot.InsertAfter(li)
|
||||
} else {
|
||||
defNode.InsertAfter(refNode)
|
||||
|
|
Loading…
Add table
Reference in a new issue