Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:art: Display reference counts after unfolding headings https://github.com/siyuan-note/siyuan/issues/14169

Daniele4c302202669
diff --git a/kernel/model/heading.go b/kernel/model/heading.go
index cc3111344f..a6d2dedf9f 100644
--- a/kernel/model/heading.go
+++ b/kernel/model/heading.go
@@ -112,6 +112,9 @@ func (tx *Transaction) doUnfoldHeading(operation *Operation) (ret *TxErr) {
}
sql.UpsertTreeQueue(tree)
+ // 展开折叠的标题后显示块引用计数 Display reference counts after unfolding headings https://github.com/siyuan-note/siyuan/issues/13618
+ fillBlockRefCount(children)
+
luteEngine := NewLute()
operation.RetData = renderBlockDOMByNodes(children, luteEngine)
return