🎨 Block ref search and global search results display reference counts https://github.com/siyuan-note/siyuan/issues/15721

This commit is contained in:
Daniel 2025-08-30 21:05:27 +08:00
parent ab66716178
commit 74304e9cba
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 37 additions and 2 deletions

View file

@ -61,6 +61,7 @@ type Block struct {
Children []*Block `json:"children"`
Depth int `json:"depth"`
Count int `json:"count"`
RefCount int `json:"refCount"`
Sort int `json:"sort"`
Created string `json:"created"`
Updated string `json:"updated"`
@ -765,7 +766,7 @@ func GetBlockKramdown(id, mode string) (ret string) {
if "md" == mode {
// `/api/block/getBlockKramdown` link/image URLs are no longer encoded with spaces https://github.com/siyuan-note/siyuan/issues/15611
luteEngine.SetPreventEncodeLinkSpace(true)
ret = treenode.ExportNodeStdMd(root, luteEngine)
} else {
tree.Root = root