mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-25 09:46:10 +01:00
🎨 The outline item in the outline panel supports dragging to adjust the level and position https://github.com/siyuan-note/siyuan/issues/7957
This commit is contained in:
parent
e988f5373f
commit
7d6dfc8536
1 changed files with 10 additions and 0 deletions
|
|
@ -54,6 +54,16 @@ func (tx *Transaction) doMoveOutlineHeading(operation *Operation) (ret *TxErr) {
|
|||
})
|
||||
|
||||
headingChildren := treenode.HeadingChildren(heading)
|
||||
var tmp []*ast.Node
|
||||
// 过滤掉超级块结束节点
|
||||
for _, child := range headingChildren {
|
||||
if ast.NodeSuperBlockCloseMarker == child.Type {
|
||||
continue
|
||||
}
|
||||
tmp = append(tmp, child)
|
||||
}
|
||||
headingChildren = tmp
|
||||
|
||||
if "" != previousID {
|
||||
previousHeading := treenode.GetNodeInTree(tree, previousID)
|
||||
if nil == previousHeading {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue