mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🎨 Improve search highlighting https://github.com/siyuan-note/siyuan/issues/13343
This commit is contained in:
parent
4b3f95e4bf
commit
c1fd34f57b
6 changed files with 32 additions and 14 deletions
|
|
@ -145,7 +145,11 @@ func getDocHistoryContent(c *gin.Context) {
|
|||
if nil != k {
|
||||
keyword = k.(string)
|
||||
}
|
||||
id, rootID, content, isLargeDoc, err := model.GetDocHistoryContent(historyPath, keyword)
|
||||
highlight := true
|
||||
if val, ok := arg["highlight"]; ok {
|
||||
highlight = val.(bool)
|
||||
}
|
||||
id, rootID, content, isLargeDoc, err := model.GetDocHistoryContent(historyPath, keyword, highlight)
|
||||
if err != nil {
|
||||
ret.Code = -1
|
||||
ret.Msg = err.Error()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue