Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: Wrong parsing virtual reference with `\` before it https://github.com/siyuan-note/siyuan/issues/12206

Daniel37c80cc77015
diff --git a/kernel/model/virutalref.go b/kernel/model/virutalref.go
index 45eb845dcb..aa9bf62c58 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