Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/thegeeklab/hugo-geekblog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Kaussow <mail@thegeeklab.de>2022-05-17 15:42:08 +0300
committerGitHub <noreply@github.com>2022-05-17 15:42:08 +0300
commit015b99a3ff7d1c8a01c8d5c2f482258a1e0df538 (patch)
tree556e8c777eb70e8c4fe042692c2a087c3fed0ca3 /layouts
parent84517d2539b7dd5405afc3f2888825c6774b6f10 (diff)
fix: fix extra space after katex shortcode (#244)
Diffstat (limited to 'layouts')
-rw-r--r--layouts/shortcodes/katex.html3
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 */ -}}