Skip to content

Commit

Permalink
🎨 Improve outline panel escape rendering Fix #12001
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jul 17, 2024
1 parent a18559e commit 1645099
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/model/render.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func renderOutline(heading *ast.Node, luteEngine *lute.Lute) (ret string) {
tokens = bytes.ReplaceAll(tokens, []byte(" "), []byte(" ")) // 大纲面板条目中无法显示多个空格 https://github.com/siyuan-note/siyuan/issues/4370
buf.Write(tokens)
case ast.NodeBackslashContent:
buf.Write(n.Tokens)
buf.Write(html.EscapeHTML(n.Tokens))
case ast.NodeTextMark:
dom := luteEngine.RenderNodeBlockDOM(n)
buf.WriteString(dom)
Expand Down

0 comments on commit 1645099

Please sign in to comment.