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:
@@ -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>
|
||||
Reference in New Issue
Block a user