Browse Source

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

Daniel 11 months ago
parent
commit
37c80cc770
1 changed files with 0 additions and 2 deletions
  1. 0 2
      kernel/model/virutalref.go

+ 0 - 2
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)
 		n.Tokens = []byte(newContent)
 		linkTree := parse.Inline("", n.Tokens, luteEngine.ParseOptions)
 		linkTree := parse.Inline("", n.Tokens, luteEngine.ParseOptions)
 		var children []*ast.Node
 		var children []*ast.Node