#583, fix katex and mermaid examples with raw html

This commit is contained in:
Alex Shpak
2024-02-17 18:57:02 +01:00
parent 01645fc56d
commit a111041867
4 changed files with 25 additions and 15 deletions
+1
View File
@@ -0,0 +1 @@
{{- .Inner -}}
+2 -2
View File
@@ -7,7 +7,7 @@
{{- end -}}
<span {{- with .Get "class" }} class="{{ . }}"{{ end }}>
{{ cond (in .Params "display") "\\[" "\\(" -}}
{{ with .Get "display" }}\[{{else}}\({{end}}
{{- trim .Inner "\n" -}}
{{- cond (in .Params "display") "\\]" "\\)" }}
{{ with .Get "display" }}\]{{else}}\){{end}}
</span>