mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-18 04:58:06 +01:00
🎨 Search preview supports HTML tags in inline code content https://github.com/siyuan-note/siyuan/issues/11418
This commit is contained in:
parent
67a4613d31
commit
4624b62e4d
2 changed files with 14 additions and 2 deletions
|
|
@ -114,7 +114,7 @@ func EncloseHighlighting(text string, keywords []string, openMark, closeMark str
|
|||
ret = text
|
||||
|
||||
if reg, err := regexp.Compile(re); nil == err {
|
||||
ret = reg.ReplaceAllStringFunc(text, func(s string) string { return openMark + util.EscapeHTML(s) + closeMark })
|
||||
ret = reg.ReplaceAllStringFunc(text, func(s string) string { return openMark + s + closeMark })
|
||||
}
|
||||
|
||||
// 搜索结果预览包含转义符问题 Search results preview contains escape character issue https://github.com/siyuan-note/siyuan/issues/9790
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue