Skip to content

Commit e4c4549

Browse files
authored
Merge pull request #22495 from sftim/20200713_retain_whitespace_in_callouts
Fix whitespace trimming for note callout shortcode
2 parents 36c9dc9 + 847f57e commit e4c4549

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)