From 9fa444757af943adfe6c4c9b39dddae9738ab82b Mon Sep 17 00:00:00 2001 From: Alex Shpak Date: Mon, 13 Jan 2020 19:05:54 +0100 Subject: #117, Update KaTeX shortcode, add displayMode param --- layouts/shortcodes/katex.html | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'layouts/shortcodes/katex.html') 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 }} -

- $$ {{- .Inner -}} $$ -

- + + {{ if in .Params "display" }}\[{{ else }}\({{ end -}} + {{ $.Inner }} + {{- if in .Params "display" }}\]{{ else }}\){{ end }} + -- cgit v1.2.3