Strip leading, trailing newline from quote shortcode content

This commit is contained in:
Will Faught
2023-01-19 20:49:13 -08:00
parent c09ba9d000
commit d718943648

View File

@@ -1,6 +1,6 @@
{{ $align := .Get "align" }}
{{ $caption := .Get 0 | default (.Get "caption") }}
{{ $content := .Inner }}
{{ $content := .Inner | replaceRE "^\n" "" | replaceRE "\n$" "" }}
{{ $float := .Get "float" }}
{{ $height := .Get "height" }}
{{ $justify := .Get "justify" }}