🎨 Improve list item, super block and blockquote backlink propagation https://github.com/siyuan-note/siyuan/issues/13776

This commit is contained in:
Daniel 2025-01-11 11:49:08 +08:00
parent c3579b20dd
commit 042b5e77ea
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 2 additions and 4 deletions

View file

@ -91,9 +91,7 @@ func GetDocInfo(blockID string) (ret *BlockInfo) {
}
ret.RefIDs, _ = sql.QueryRefIDsByDefID(blockID, Conf.Editor.BacklinkContainChildren)
originalRefBlockIDs := map[string]string{}
// TODO
buildBacklinkListItemRefs(&ret.RefIDs, &originalRefBlockIDs)
buildBacklinkListItemRefs(&ret.RefIDs, &map[string]string{})
ret.RefCount = len(ret.RefIDs) // 填充块引计数
// 填充属性视图角标 Display the database title on the block superscript https://github.com/siyuan-note/siyuan/issues/10545

View file

@ -604,7 +604,7 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[s
if isBacklink {
// 引用计数浮窗请求,需要按照反链逻辑组装 https://github.com/siyuan-note/siyuan/issues/6853
originalRefBlockIDs := map[string]string{}
// TODO
// TODO 需要增加参数,使用 getRefIDs 返回的 originalRefBlockIDs 增加这个参数后才能支持计数浮窗内计算折叠状态 https://github.com/siyuan-note/siyuan/issues/13776
nodes, isBacklinkExpand = getBacklinkRenderNodes(node, originalRefBlockIDs)
} else {
// 如果同时存在 startID 和 endID并且是动态加载的情况则只加载 startID 和 endID 之间的块 [startID, endID]