mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
🎨 改进块引计数浮窗显示逻辑 https://github.com/siyuan-note/siyuan/issues/6853
This commit is contained in:
parent
818d04a8b7
commit
3d682a115d
1 changed files with 7 additions and 1 deletions
|
|
@ -479,7 +479,13 @@ func GetDoc(startID, endID, id string, index int, keyword string, mode int, size
|
|||
|
||||
if isBacklink { // 引用计数浮窗请求,需要按照反链逻辑组装 https://github.com/siyuan-note/siyuan/issues/6853
|
||||
if ast.NodeParagraph == node.Type {
|
||||
node = node.Parent
|
||||
if nil != node.Parent && ast.NodeListItem == node.Parent.Type {
|
||||
node = node.Parent
|
||||
} else {
|
||||
if parent := treenode.HeadingParent(node); nil != parent {
|
||||
node = parent
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue