Skip to content

Commit 847f57e

Browse files
author
Tim Bannister
committed
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.
1 parent 92ba70f commit 847f57e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/shortcodes/note.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<blockquote class="note">
2-
<div><strong>{{ T "note" }}</strong> {{ replaceRE "\\s+|\n" " " .Inner | markdownify }}</div>
2+
<div><strong>{{ T "note" }}</strong> {{ trim .Inner " \n" | markdownify }}</div>
33
</blockquote>

0 commit comments

Comments
 (0)