mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 16:10:12 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
ada15c36f5
1 changed files with 1 additions and 1 deletions
|
|
@ -673,7 +673,7 @@ func GetDoc(startID, endID, id string, index int, query string, queryTypes map[s
|
||||||
subTree := &parse.Tree{ID: rootID, Root: &ast.Node{Type: ast.NodeDocument}, Marks: tree.Marks}
|
subTree := &parse.Tree{ID: rootID, Root: &ast.Node{Type: ast.NodeDocument}, Marks: tree.Marks}
|
||||||
|
|
||||||
var keywords []string
|
var keywords []string
|
||||||
if 0 == queryMethod || 1 == queryMethod { // 只有关键字搜索和查询语法搜索才支持高亮
|
if "" != query && (0 == queryMethod || 1 == queryMethod) { // 只有关键字搜索和查询语法搜索才支持高亮
|
||||||
if 0 == queryMethod {
|
if 0 == queryMethod {
|
||||||
query = stringQuery(query)
|
query = stringQuery(query)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue