浏览代码

:art: https://github.com/siyuan-note/siyuan/pull/13241

Daniel 6 月之前
父节点
当前提交
52b3a1e8fa
共有 1 个文件被更改,包括 0 次插入8 次删除
  1. 0 8
      kernel/model/file.go

+ 0 - 8
kernel/model/file.go

@@ -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) {