This commit is contained in:
Liang Ding 2022-09-24 22:18:48 +08:00
parent 32f08aa037
commit 5b39560d7d
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
4 changed files with 5 additions and 13 deletions

View file

@ -637,11 +637,6 @@ func GetDoc(startID, endID, id string, index int, keyword string, mode int, size
}
}
if treenode.IsBlockRef(n) {
appendRefTextRenderResultForBlockRef(n)
return ast.WalkSkipChildren
}
// 支持代码块搜索定位 https://github.com/siyuan-note/siyuan/issues/5520
if ast.NodeCodeBlockCode == n.Type && 0 < len(keywords) && !treenode.IsChartCodeBlockCode(n) {
text := string(n.Tokens)