mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
🎨 Improve backmention highlighting https://github.com/siyuan-note/siyuan/issues/13328
This commit is contained in:
parent
441b6f7f65
commit
8f89caf22e
2 changed files with 15 additions and 6 deletions
|
|
@ -60,9 +60,10 @@ func getBackmentionDoc(c *gin.Context) {
|
|||
if val, ok := arg["highlight"]; ok {
|
||||
highlight = val.(bool)
|
||||
}
|
||||
backlinks := model.GetBackmentionDoc(defID, refTreeID, keyword, containChildren, highlight)
|
||||
backlinks, keywords := model.GetBackmentionDoc(defID, refTreeID, keyword, containChildren, highlight)
|
||||
ret.Data = map[string]interface{}{
|
||||
"backmentions": backlinks,
|
||||
"keywords": keywords,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -86,9 +87,10 @@ func getBacklinkDoc(c *gin.Context) {
|
|||
if val, ok := arg["highlight"]; ok {
|
||||
highlight = val.(bool)
|
||||
}
|
||||
backlinks := model.GetBacklinkDoc(defID, refTreeID, keyword, containChildren, highlight)
|
||||
backlinks, keywords := model.GetBacklinkDoc(defID, refTreeID, keyword, containChildren, highlight)
|
||||
ret.Data = map[string]interface{}{
|
||||
"backlinks": backlinks,
|
||||
"keywords": keywords,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue