mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 14:40:12 +01:00
🎨 Fix list item parent indexing https://github.com/siyuan-note/siyuan/issues/11894
This commit is contained in:
parent
8c36764686
commit
7aa0776cd5
1 changed files with 3 additions and 0 deletions
|
|
@ -45,6 +45,9 @@ func NodeHash(node *ast.Node, tree *parse.Tree, luteEngine *lute.Lute) string {
|
|||
}
|
||||
hpath := tree.HPath
|
||||
data := tree.Box + tree.Path + hpath + string(ial) + md
|
||||
if nil != node.Parent {
|
||||
data += node.Parent.ID
|
||||
}
|
||||
return fmt.Sprintf("%x", sha256.Sum256(gulu.Str.ToBytes(data)))[:7]
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue