🐛 Abnormal heading block update time Fix https://github.com/siyuan-note/siyuan/issues/11996
This commit is contained in:
parent
bcd12057bc
commit
1a34e49edf
1 changed files with 3 additions and 0 deletions
|
@ -244,6 +244,9 @@ func ParentNodesWithHeadings(node *ast.Node) (parents []*ast.Node) {
|
|||
// 标题下方块编辑后刷新标题块更新时间
|
||||
// The heading block update time is refreshed after editing the blocks under the heading https://github.com/siyuan-note/siyuan/issues/11374
|
||||
parentHeadingLevel := 7
|
||||
if ast.NodeHeading == n.Type {
|
||||
parentHeadingLevel = n.HeadingLevel
|
||||
}
|
||||
for prev := n.Previous; nil != prev; prev = prev.Previous {
|
||||
if ast.NodeHeading == prev.Type {
|
||||
if prev.HeadingLevel >= parentHeadingLevel {
|
||||
|
|
Loading…
Add table
Reference in a new issue