Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Some symbols should not be escaped to avoid inaccurate searches

Daniel18b8597794c4
diff --git a/kernel/treenode/tree.go b/kernel/treenode/tree.go
index b25699dae7..324ea87d3c 100644
--- a/kernel/treenode/tree.go
+++ b/kernel/treenode/tree.go
@@ -28,6 +28,7 @@ import (
"github.com/88250/gulu"
"github.com/88250/lute"
"github.com/88250/lute/ast"
+ "github.com/88250/lute/html"
"github.com/88250/lute/parse"
"github.com/siyuan-note/filelock"
"github.com/siyuan-note/siyuan/kernel/util"
@@ -87,7 +88,7 @@ func IALStr(n *ast.Node) string {
if 1 > len(n.KramdownIAL) {
return ""
}
- return string(parse.IAL2Tokens(n.KramdownIAL))
+ return html.UnescapeString(string(parse.IAL2Tokens(n.KramdownIAL)))
}
func RootChildIDs(rootID string) (ret []string) {