From f576e4ca0d5608991ef7c84f8dfc2322d28945a3 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 17 May 2022 14:45:25 +0200 Subject: [PATCH] fix: fix extra space after katex shortcode (#406) --- layouts/shortcodes/katex.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/layouts/shortcodes/katex.html b/layouts/shortcodes/katex.html index b4bc605..559acb6 100644 --- a/layouts/shortcodes/katex.html +++ b/layouts/shortcodes/katex.html @@ -13,5 +13,6 @@ {{ cond (in .Params "display") "\\[" "\\(" -}} {{- trim .Inner "\n" -}} - {{- cond (in .Params "display") "\\]" "\\)" }} + {{- cond (in .Params "display") "\\]" "\\)" -}} +{{- /* Drop trailing newlines */ -}}