Strip leading, trailing newline from quote shortcode content

master
Will Faught 2 years ago
parent c09ba9d000
commit d718943648

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

Loading…
Cancel
Save