mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🐛 Fix backmention highlighting https://github.com/siyuan-note/siyuan/issues/13324
This commit is contained in:
parent
6c7c737178
commit
2292f1a0a5
1 changed files with 3 additions and 1 deletions
|
|
@ -94,7 +94,9 @@ func GetBackmentionDoc(defID, refTreeID, keyword string, containChildren bool) (
|
||||||
}
|
}
|
||||||
mentionBlockIDs = gulu.Str.RemoveDuplicatedElem(mentionBlockIDs)
|
mentionBlockIDs = gulu.Str.RemoveDuplicatedElem(mentionBlockIDs)
|
||||||
|
|
||||||
mentionKeywords = strings.Split(keyword, " ")
|
if "" != keyword {
|
||||||
|
mentionKeywords = append(mentionKeywords, strings.Split(keyword, " ")...)
|
||||||
|
}
|
||||||
mentionKeywords = gulu.Str.RemoveDuplicatedElem(mentionKeywords)
|
mentionKeywords = gulu.Str.RemoveDuplicatedElem(mentionKeywords)
|
||||||
|
|
||||||
var refTree *parse.Tree
|
var refTree *parse.Tree
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue