diff options
author | Robert Kaussow <mail@thegeeklab.de> | 2022-05-17 15:42:08 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-17 15:42:08 +0300 |
commit | 015b99a3ff7d1c8a01c8d5c2f482258a1e0df538 (patch) | |
tree | 556e8c777eb70e8c4fe042692c2a087c3fed0ca3 /layouts | |
parent | 84517d2539b7dd5405afc3f2888825c6774b6f10 (diff) |
fix: fix extra space after katex shortcode (#244)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/katex.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/layouts/shortcodes/katex.html b/layouts/shortcodes/katex.html index eee26eb..1333d83 100644 --- a/layouts/shortcodes/katex.html +++ b/layouts/shortcodes/katex.html @@ -13,5 +13,6 @@ <span class="gblog-katex {{ with .Get "class" }}{{ . }}{{ end }}"> {{ cond (in .Params "display") "\\[" "\\(" -}} {{- trim .Inner "\n" -}} - {{- cond (in .Params "display") "\\]" "\\)" }} + {{- cond (in .Params "display") "\\]" "\\)" -}} </span> +{{- /* Drop trailing newlines */ -}} |