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: Wrong parsing virtual reference with `\` before it Fix https://github.com/siyuan-note/siyuan/issues/7821
Liang Ding6f8683de5fb9
diff --git a/kernel/model/virutalref.go b/kernel/model/virutalref.goindex d0ca24d44f..5c1c8698c5 100644--- a/kernel/model/virutalref.go+++ b/kernel/model/virutalref.go@@ -157,6 +157,8 @@ func processVirtualRef(n *ast.Node, unlinks *[]*ast.Node, virtualBlockRefKeyword}}+ // Wrong parsing virtual reference with `\` before it https://github.com/siyuan-note/siyuan/issues/7821+ newContent = strings.ReplaceAll(newContent, "\\"+search.GetMarkSpanStart(search.VirtualBlockRefDataType), "\\\\"+search.GetMarkSpanStart(search.VirtualBlockRefDataType))n.Tokens = []byte(newContent)linkTree := parse.Inline("", n.Tokens, luteEngine.ParseOptions)var children []*ast.Node