|
@@ -46,7 +46,7 @@ func renderOutline(node *ast.Node, luteEngine *lute.Lute) (ret string) {
|
|
return ast.WalkContinue
|
|
return ast.WalkContinue
|
|
}
|
|
}
|
|
switch n.Type {
|
|
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 := html.EscapeHTML(n.Tokens)
|
|
tokens = bytes.ReplaceAll(tokens, []byte(" "), []byte(" ")) // 大纲面板条目中无法显示多个空格 https://github.com/siyuan-note/siyuan/issues/4370
|
|
tokens = bytes.ReplaceAll(tokens, []byte(" "), []byte(" ")) // 大纲面板条目中无法显示多个空格 https://github.com/siyuan-note/siyuan/issues/4370
|
|
buf.Write(tokens)
|
|
buf.Write(tokens)
|