mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50: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
|
|
@ -88,6 +88,10 @@ func EncloseHighlighting(text string, keywords []string, openMark, closeMark str
|
|||
}
|
||||
re := ic + "("
|
||||
for i, k := range keywords {
|
||||
if "" == k {
|
||||
continue
|
||||
}
|
||||
|
||||
wordBoundary := false
|
||||
if splitWords {
|
||||
wordBoundary = lex.IsASCIILetterNums(gulu.Str.ToBytes(k)) // Improve virtual reference split words https://github.com/siyuan-note/siyuan/issues/7833
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue