🎨 改进标题下方块和列表项子块引用时的反链定位 https://github.com/siyuan-note/siyuan/issues/7484
This commit is contained in:
parent
6d71788e19
commit
f4fd247598
1 changed files with 0 additions and 11 deletions
|
@ -512,18 +512,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 改进标题下方块引用时的反链定位 https://github.com/siyuan-note/siyuan/issues/7484
|
||||
processedParagraphs.Add(p.ID)
|
||||
|
||||
if !strings.Contains(p.Content, keyword) {
|
||||
refsCount--
|
||||
continue
|
||||
}
|
||||
ret = append(ret, fromSQLBlock(p, "", 12))
|
||||
}
|
||||
}
|
||||
for _, link := range links {
|
||||
for _, ref := range link.Refs {
|
||||
if "NodeParagraph" == ref.Type {
|
||||
|
|
Loading…
Add table
Reference in a new issue