From 847f57ecf53b46bc7ab5e134b1e78ee2113fce21 Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Mon, 13 Jul 2020 19:17:07 +0100 Subject: [PATCH] Fix whitespace trimming for note callout shortcode Use the same whitespace trimming that the other callout shortcodes (warning, caution) use, and avoid excessive newline removal. --- layouts/shortcodes/note.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/layouts/shortcodes/note.html b/layouts/shortcodes/note.html index 1da48797c5..1161c2366c 100644 --- a/layouts/shortcodes/note.html +++ b/layouts/shortcodes/note.html @@ -1,3 +1,3 @@
-
{{ T "note" }} {{ replaceRE "\\s+|\n" " " .Inner | markdownify }}
+
{{ T "note" }} {{ trim .Inner " \n" | markdownify }}
\ No newline at end of file