diff options
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/katex.html | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/layouts/shortcodes/katex.html b/layouts/shortcodes/katex.html index c3c36aa..ce7a6d9 100644 --- a/layouts/shortcodes/katex.html +++ b/layouts/shortcodes/katex.html @@ -7,7 +7,8 @@ {{ .Page.Scratch.Set "katex" true }} {{ end }} -<p class="katex{{ with .Get "class" }} {{ . }}{{ end }}"> - $$ {{- .Inner -}} $$ -</p> - +<span class="katex{{ with .Get "class" }} {{ . }}{{ end }}"> + {{ if in .Params "display" }}\[{{ else }}\({{ end -}} + {{ $.Inner }} + {{- if in .Params "display" }}\]{{ else }}\){{ end }} +</span> |