An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 改进块引计数浮窗显示逻辑 https://github.com/siyuan-note/siyuan/issues/6853
Liang Ding3d682a115deb
diff --git a/kernel/model/file.go b/kernel/model/file.goindex 19d693d125..0a17eb9dbe 100644--- a/kernel/model/file.go+++ b/kernel/model/file.go@@ -479,7 +479,13 @@ func GetDoc(startID, endID, id string, index int, keyword string, mode int, sizeif isBacklink { // 引用计数浮窗请求,需要按照反链逻辑组装 https://github.com/siyuan-note/siyuan/issues/6853if 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+ }+ }}}