mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 带子级升降级标题层级支持列表块中的标题 Fix https://github.com/siyuan-note/siyuan/issues/6157
This commit is contained in:
@@ -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{}
|
||||
|
||||
Reference in New Issue
Block a user