From db523f5b7e57011bf911db217592db7047d41eae Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 12 Jan 2023 11:15:13 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E6=90=9C=E7=B4=A2=E9=AB=98=E4=BA=AE?= =?UTF-8?q?=E5=92=8C=E8=99=9A=E6=8B=9F=E5=BC=95=E7=94=A8=E4=B8=8D=E9=9C=80?= =?UTF-8?q?=E8=A6=81=E8=BD=AC=E4=B9=89=20Markdown=20=E6=A0=87=E8=AE=B0?= =?UTF-8?q?=E7=AC=A6=20Fix=20https://github.com/siyuan-note/siyuan/issues/?= =?UTF-8?q?7051?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/search.go | 1 - kernel/model/virutalref.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/kernel/model/search.go b/kernel/model/search.go index de95a1779..c28f39bab 100644 --- a/kernel/model/search.go +++ b/kernel/model/search.go @@ -879,7 +879,6 @@ func markReplaceSpan(n *ast.Node, unlinks *[]*ast.Node, keywords []string, markS text = search.EncloseHighlighting(text, keywords, getMarkSpanStart(markSpanDataType), getMarkSpanEnd(), Conf.Search.CaseSensitive) n.Tokens = gulu.Str.ToBytes(text) if bytes.Contains(n.Tokens, []byte(searchMarkDataType)) { - n.Tokens = lex.EscapeMarkers(n.Tokens) linkTree := parse.Inline("", n.Tokens, luteEngine.ParseOptions) var children []*ast.Node for c := linkTree.Root.FirstChild.FirstChild; nil != c; c = c.Next { diff --git a/kernel/model/virutalref.go b/kernel/model/virutalref.go index 7ca3db966..6e3a1e2e5 100644 --- a/kernel/model/virutalref.go +++ b/kernel/model/virutalref.go @@ -24,7 +24,6 @@ import ( "github.com/88250/gulu" "github.com/88250/lute" "github.com/88250/lute/ast" - "github.com/88250/lute/lex" "github.com/88250/lute/parse" "github.com/siyuan-note/siyuan/kernel/sql" "github.com/siyuan-note/siyuan/kernel/treenode" @@ -65,7 +64,6 @@ func processVirtualRef(n *ast.Node, unlinks *[]*ast.Node, virtualBlockRefKeyword } n.Tokens = []byte(newContent) - n.Tokens = lex.EscapeMarkers(n.Tokens) linkTree := parse.Inline("", n.Tokens, luteEngine.ParseOptions) var children []*ast.Node for c := linkTree.Root.FirstChild.FirstChild; nil != c; c = c.Next {