mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-09-22 00:20:47 +02:00
🎨 Improve backmention search https://github.com/siyuan-note/siyuan/issues/4699
This commit is contained in:
parent
5f0f4e3ba6
commit
76e4aad584
1 changed files with 1 additions and 1 deletions
|
@ -862,7 +862,7 @@ func searchBackmention(mentionKeywords []string, keyword string, excludeBacklink
|
|||
if !entering || n.IsBlock() {
|
||||
return ast.WalkContinue
|
||||
}
|
||||
if ast.NodeText == n.Type { // 这里包含了标签命中的情况,因为 Lute 没有启用 TextMark
|
||||
if ast.NodeText == n.Type /* NodeText 包含了标签命中的情况 */ || ast.NodeLinkText == n.Type {
|
||||
textBuf.Write(n.Tokens)
|
||||
}
|
||||
return ast.WalkContinue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue