Skip to content

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

:art: 改进标题下方块引用时的反链定位 https://github.com/siyuan-note/siyuan/issues/7484

Liang Ding6d71788e1979
diff --git a/kernel/model/backlink.go b/kernel/model/backlink.go
index f0eee898f4..15f2cfd657 100644
--- a/kernel/model/backlink.go
+++ b/kernel/model/backlink.go
@@ -514,7 +514,7 @@ func buildLinkRefs(defRootID string, refs []*sql.Ref, keyword string) (ret []*Bl
}
paragraphParents := sql.GetBlocks(paragraphParentIDs)
for _, p := range paragraphParents {
- if "i" == p.Type || "h" == p.Type {
+ if "i" == p.Type { // || "h" == p.Type 改进标题下方块引用时的反链定位 https://github.com/siyuan-note/siyuan/issues/7484
processedParagraphs.Add(p.ID)
if !strings.Contains(p.Content, keyword) {