From b66c3987505b52efe1f085f1447ad715e7110f23 Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Thu, 8 Dec 2022 20:33:38 +0800 Subject: [PATCH] =?UTF-8?q?:recycle:=20=E7=A7=BB=E9=99=A4=E6=97=A7?= =?UTF-8?q?=E7=89=88=E4=B8=AD=E7=9A=84=E8=A1=8C=E7=BA=A7=E5=85=83=E7=B4=A0?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E4=BB=A3=E7=A0=81=20https://github.com/siyua?= =?UTF-8?q?n-note/siyuan/issues/6819?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kernel/model/render.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/render.go b/kernel/model/render.go index f8f9a03f0..6a48f55d8 100644 --- a/kernel/model/render.go +++ b/kernel/model/render.go @@ -46,7 +46,7 @@ func renderOutline(node *ast.Node, luteEngine *lute.Lute) (ret string) { return ast.WalkContinue } switch n.Type { - case ast.NodeText, ast.NodeLinkText, ast.NodeFootnotesRef, ast.NodeCodeBlockCode, ast.NodeMathBlockContent: + case ast.NodeText, ast.NodeLinkText, ast.NodeCodeBlockCode, ast.NodeMathBlockContent: tokens := html.EscapeHTML(n.Tokens) tokens = bytes.ReplaceAll(tokens, []byte(" "), []byte(" ")) // 大纲面板条目中无法显示多个空格 https://github.com/siyuan-note/siyuan/issues/4370 buf.Write(tokens)