mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-21 14:34:06 +01:00
🎨 改进打开虚拟引用后加载文档的性能 https://github.com/siyuan-note/siyuan/issues/7378
This commit is contained in:
parent
7d05f4e8c7
commit
e89f706864
5 changed files with 9 additions and 16 deletions
|
|
@ -167,7 +167,7 @@ func buildBacklink(refID string, refTree *parse.Tree, keywords []string, luteEng
|
|||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
markReplaceSpan(n, &unlinks, keywords, searchMarkDataType, luteEngine)
|
||||
markReplaceSpan(n, &unlinks, keywords, search.MarkDataType, luteEngine)
|
||||
return ast.WalkContinue
|
||||
})
|
||||
|
||||
|
|
@ -690,7 +690,7 @@ func searchBackmention(mentionKeywords []string, keyword string, excludeBacklink
|
|||
continue
|
||||
}
|
||||
|
||||
newText := markReplaceSpanWithSplit(text, mentionKeywords, getMarkSpanStart(searchMarkDataType), getMarkSpanEnd())
|
||||
newText := markReplaceSpanWithSplit(text, mentionKeywords, search.GetMarkSpanStart(search.MarkDataType), search.GetMarkSpanEnd())
|
||||
if text != newText {
|
||||
tmp = append(tmp, b)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue