mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-02-28 05:32:52 +00:00
🎨 改进块引计数浮窗显示逻辑 https://github.com/siyuan-note/siyuan/issues/6853
This commit is contained in:
@@ -482,7 +482,7 @@ func GetDoc(startID, endID, id string, index int, keyword string, mode int, size
|
||||
if nil != node.Parent && ast.NodeListItem == node.Parent.Type {
|
||||
node = node.Parent
|
||||
} else {
|
||||
if parent := treenode.HeadingParent(node); nil != parent {
|
||||
if parent := treenode.HeadingParent(node); nil != parent && ast.NodeDocument != parent.Type {
|
||||
node = parent
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user