mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve search highlighting https://github.com/siyuan-note/siyuan/issues/13343
This commit is contained in:
parent
96c59433e2
commit
08e3b6b82f
2 changed files with 4 additions and 3 deletions
|
|
@ -1120,7 +1120,7 @@ func getDoc(c *gin.Context) {
|
|||
highlight = highlightArg.(bool)
|
||||
}
|
||||
|
||||
blockCount, content, parentID, parent2ID, rootID, typ, eof, scroll, boxID, docPath, isBacklinkExpand, err :=
|
||||
blockCount, content, parentID, parent2ID, rootID, typ, eof, scroll, boxID, docPath, isBacklinkExpand, keywords, err :=
|
||||
model.GetDoc(startID, endID, id, index, query, queryTypes, queryMethod, mode, size, isBacklink, highlight)
|
||||
if model.ErrBlockNotFound == err {
|
||||
ret.Code = 3
|
||||
|
|
@ -1151,6 +1151,7 @@ func getDoc(c *gin.Context) {
|
|||
"path": docPath,
|
||||
"isSyncing": isSyncing,
|
||||
"isBacklinkExpand": isBacklinkExpand,
|
||||
"keywords": keywords,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue