mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 Blocks below other non-folded headings are no longer moved when moving a folded heading Fix https://github.com/siyuan-note/siyuan/issues/8321
This commit is contained in:
@@ -72,6 +72,15 @@ func IsInFoldedHeading(node, currentHeading *ast.Node) bool {
|
||||
return IsInFoldedHeading(heading, currentHeading)
|
||||
}
|
||||
|
||||
func GetHeadingFold(nodes []*ast.Node) (ret []*ast.Node) {
|
||||
for _, n := range nodes {
|
||||
if "1" == n.IALAttr("heading-fold") {
|
||||
ret = append(ret, n)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func HeadingChildren(heading *ast.Node) (ret []*ast.Node) {
|
||||
start := heading.Next
|
||||
if nil == start {
|
||||
|
||||
Reference in New Issue
Block a user