mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 23:20:13 +01:00
🐛 The keyboard element is highlighted incorrectly in backlink mentions Fix https://github.com/siyuan-note/siyuan/issues/8143
This commit is contained in:
parent
f3dd8e5315
commit
3d0b3c5ac9
2 changed files with 12 additions and 0 deletions
|
|
@ -232,6 +232,14 @@ func getVirtualRefKeywords(docName string) (ret []string) {
|
|||
|
||||
func prepareMarkKeywords(keywords []string) (ret []string) {
|
||||
ret = gulu.Str.RemoveDuplicatedElem(keywords)
|
||||
var tmp []string
|
||||
for _, k := range ret {
|
||||
if "" != k {
|
||||
tmp = append(tmp, k)
|
||||
}
|
||||
}
|
||||
ret = tmp
|
||||
|
||||
sort.SliceStable(ret, func(i, j int) bool {
|
||||
return len(ret[i]) > len(ret[j])
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue