🎨 Search preview supports HTML tags in inline code content https://github.com/siyuan-note/siyuan/issues/11418

This commit is contained in:
Daniel 2024-05-17 11:20:24 +08:00
parent 67a4613d31
commit 4624b62e4d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
2 changed files with 14 additions and 2 deletions

View file

@ -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