mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve priority of folding processing when headings and super blocks are mixed https://github.com/siyuan-note/siyuan/issues/9488
This commit is contained in:
parent
256e64e8b5
commit
5e6d94783b
5 changed files with 19 additions and 112 deletions
|
|
@ -881,12 +881,6 @@ func heading(node *ast.Node) *ast.Node {
|
|||
currentLevel := 16
|
||||
if ast.NodeHeading == node.Type {
|
||||
currentLevel = node.HeadingLevel
|
||||
} else if ast.NodeSuperBlock == node.Type {
|
||||
superBlockHeading := treenode.SuperBlockHeading(node)
|
||||
if nil != superBlockHeading {
|
||||
node = superBlockHeading
|
||||
currentLevel = node.HeadingLevel
|
||||
}
|
||||
}
|
||||
|
||||
for prev := node.Previous; nil != prev; prev = prev.Previous {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue