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.
This commit is contained in:
Tim Bannister
2020-07-13 19:17:07 +01:00
parent 92ba70f729
commit 847f57ecf5
+1 -1
View File
@@ -1,3 +1,3 @@
<blockquote class="note">
<div><strong>{{ T "note" }}</strong> {{ replaceRE "\\s+|\n" " " .Inner | markdownify }}</div>
<div><strong>{{ T "note" }}</strong> {{ trim .Inner " \n" | markdownify }}</div>
</blockquote>