From 015b99a3ff7d1c8a01c8d5c2f482258a1e0df538 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 17 May 2022 14:42:08 +0200 Subject: [PATCH] fix: fix extra space after katex shortcode (#244) --- 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 eee26eb..1333d83 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 */ -}}