Skip to content

Commit

Permalink
🎨 #13241
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 17, 2024
1 parent c3812c1 commit 52b3a1e
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions kernel/model/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,14 +711,6 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[s
keywords = append(keywords, inline.TextMarkTextContent)
}
}
images := n.ChildrenByType(ast.NodeImage)
for _, image := range images {
dest := image.ChildByType(ast.NodeLinkDest)
if nil != dest && util.ContainsSubStr(string(dest.Tokens), keywords) {
// 支持图片搜索定位 https://github.com/siyuan-note/siyuan/issues/13510
keywords = append(keywords, string(dest.Tokens))
}
}
}

if processVirtualRef(n, &unlinks, virtualBlockRefKeywords, refCount, luteEngine) {
Expand Down

0 comments on commit 52b3a1e

Please sign in to comment.