This commit is contained in:
Daniel 2025-07-23 11:33:20 +08:00
parent 5f0f4e3ba6
commit 76e4aad584
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -862,7 +862,7 @@ func searchBackmention(mentionKeywords []string, keyword string, excludeBacklink
if !entering || n.IsBlock() { if !entering || n.IsBlock() {
return ast.WalkContinue return ast.WalkContinue
} }
if ast.NodeText == n.Type { // 这里包含了标签命中的情况,因为 Lute 没有启用 TextMark if ast.NodeText == n.Type /* NodeText 包含了标签命中的情况 */ || ast.NodeLinkText == n.Type {
textBuf.Write(n.Tokens) textBuf.Write(n.Tokens)
} }
return ast.WalkContinue return ast.WalkContinue