mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
This commit is contained in:
parent
2cd8fe1379
commit
c3812c11fe
2 changed files with 9 additions and 1 deletions
|
|
@ -711,6 +711,14 @@ 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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue