Use trim instead of replaceRE
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
{{ $content := .InnerDeindent | replaceRE "^\n" "" }}
|
||||
{{ $content := trim .InnerDeindent "\f\n\r\v" }}
|
||||
{{ $lang := .Get 0 | default (.Get "lang") | default "plaintext" }}
|
||||
{{ $options := .Get "options" }}
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{{ $cite := .Get 0 | default (.Get "cite") }}
|
||||
{{ $content := .InnerDeindent | replaceRE "^\n" "" | replaceRE "\n$" "" | markdownify }}
|
||||
{{ $content := trim .InnerDeindent "\f\n\r\v" | markdownify }}
|
||||
|
||||
{{ if not $content }}
|
||||
{{ errorf "layouts/shortcodes/paige/quote.html: no content" }}
|
||||
|
Reference in New Issue
Block a user