Bladeren bron

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

Liang Ding 2 jaren geleden
bovenliggende
commit
3473496a43
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  1. 1 1
      kernel/model/backlink.go

+ 1 - 1
kernel/model/backlink.go

@@ -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)
 		}