From 81084e90ba7b1b0c7f9d759de99151174052854a Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Tue, 20 Sep 2022 10:41:19 +0800 Subject: [PATCH] =?UTF-8?q?:art:=20=E8=A2=AB=20`\`=20=E8=BD=AC=E4=B9=89?= =?UTF-8?q?=E7=9A=84=E6=A0=87=E8=AE=B0=E7=AC=A6=E5=9C=A8=E5=A4=A7=E7=BA=B2?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=20Fix=20https://github.com/siyuan-note/siyua?= =?UTF-8?q?n/issues/5911?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/render.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kernel/model/render.go b/kernel/model/render.go index b83ee4996..9ff56529f 100644 --- a/kernel/model/render.go +++ b/kernel/model/render.go @@ -55,6 +55,8 @@ func renderOutline(node *ast.Node, luteEngine *lute.Lute) (ret string) { tokens := html.EscapeHTML(n.Tokens) tokens = bytes.ReplaceAll(tokens, []byte(" "), []byte(" ")) // 大纲面板条目中无法显示多个空格 https://github.com/siyuan-note/siyuan/issues/4370 buf.Write(tokens) + case ast.NodeBackslashContent: + buf.Write(n.Tokens) case ast.NodeInlineMath, ast.NodeStrong, ast.NodeEmphasis, ast.NodeCodeSpan, ast.NodeTextMark, ast.NodeMark: dom := lute.RenderNodeBlockDOM(n, luteEngine.ParseOptions, luteEngine.RenderOptions) buf.WriteString(dom)