🎨 被 \
转义的标记符在大纲显示 Fix https://github.com/siyuan-note/siyuan/issues/5911
This commit is contained in:
parent
f1d3a158b1
commit
81084e90ba
1 changed files with 2 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue