An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: 搜索高亮和虚拟引用不需要转义 Markdown 标记符 Fix https://github.com/siyuan-note/siyuan/issues/7051
Liang Dingdb523f5b7e57
diff --git a/kernel/model/search.go b/kernel/model/search.goindex de95a17796..c28f39babb 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, markStext = 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.Nodefor c := linkTree.Root.FirstChild.FirstChild; nil != c; c = c.Next {diff --git a/kernel/model/virutalref.go b/kernel/model/virutalref.goindex 7ca3db9666..6e3a1e2e54 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.Nodefor c := linkTree.Root.FirstChild.FirstChild; nil != c; c = c.Next {