🐛 标题块下方块反向链接计算问题 https://github.com/siyuan-note/siyuan/issues/5822

This commit is contained in:
Liang Ding 2022-09-05 12:26:13 +08:00
parent 4cc4029ae7
commit 3473496a43
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -238,7 +238,7 @@ func BuildTreeBacklink(id, keyword, mentionKeyword string, beforeLen int) (boxID
}
paragraphParents := sql.GetBlocks(paragraphParentIDs)
for _, p := range paragraphParents {
if "i" == p.Type {
if "i" == p.Type || "h" == p.Type {
linkRefs = append(linkRefs, fromSQLBlock(p, keyword, beforeLen))
processedParagraphs.Add(p.ID)
}