Pārlūkot izejas kodu

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

Daniel 1 gadu atpakaļ
vecāks
revīzija
18b8597794
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      kernel/treenode/tree.go

+ 2 - 1
kernel/treenode/tree.go

@@ -28,6 +28,7 @@ import (
 	"github.com/88250/gulu"
 	"github.com/88250/gulu"
 	"github.com/88250/lute"
 	"github.com/88250/lute"
 	"github.com/88250/lute/ast"
 	"github.com/88250/lute/ast"
+	"github.com/88250/lute/html"
 	"github.com/88250/lute/parse"
 	"github.com/88250/lute/parse"
 	"github.com/siyuan-note/filelock"
 	"github.com/siyuan-note/filelock"
 	"github.com/siyuan-note/siyuan/kernel/util"
 	"github.com/siyuan-note/siyuan/kernel/util"
@@ -87,7 +88,7 @@ func IALStr(n *ast.Node) string {
 	if 1 > len(n.KramdownIAL) {
 	if 1 > len(n.KramdownIAL) {
 		return ""
 		return ""
 	}
 	}
-	return string(parse.IAL2Tokens(n.KramdownIAL))
+	return html.UnescapeString(string(parse.IAL2Tokens(n.KramdownIAL)))
 }
 }
 
 
 func RootChildIDs(rootID string) (ret []string) {
 func RootChildIDs(rootID string) (ret []string) {