🎨 带子级升降级标题层级支持列表块中的标题 Fix https://github.com/siyuan-note/siyuan/issues/6157
This commit is contained in:
parent
3c4af0fc85
commit
a92cef6dde
1 changed files with 2 additions and 3 deletions
|
@ -296,9 +296,8 @@ func GetHeadingLevelTransaction(id string, level int) (transaction *Transaction,
|
|||
children = append(children, node)
|
||||
children = append(children, treenode.HeadingChildren(node)...)
|
||||
for _, c := range children {
|
||||
if ast.NodeHeading == c.Type {
|
||||
childrenHeadings = append(childrenHeadings, c)
|
||||
}
|
||||
ccH := c.ChildrenByType(ast.NodeHeading)
|
||||
childrenHeadings = append(childrenHeadings, ccH...)
|
||||
}
|
||||
|
||||
transaction = &Transaction{}
|
||||
|
|
Loading…
Add table
Reference in a new issue