From 37c80cc77015737be496c8a235589a27e3bb3836 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Fri, 9 Aug 2024 09:07:02 +0800 Subject: [PATCH] :bug: Wrong parsing virtual reference with `\` before it https://github.com/siyuan-note/siyuan/issues/12206 --- kernel/model/virutalref.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/kernel/model/virutalref.go b/kernel/model/virutalref.go index 45eb845dc..aa9bf62c5 100644 --- a/kernel/model/virutalref.go +++ b/kernel/model/virutalref.go @@ -195,8 +195,6 @@ 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