diff --git a/layouts/shortcodes/prismjs.html b/layouts/shortcodes/prismjs.html index fe73753..e4acffe 100644 --- a/layouts/shortcodes/prismjs.html +++ b/layouts/shortcodes/prismjs.html @@ -1,4 +1,4 @@ -{{ $inner := replaceRE "^\n" "" .Inner | string }} +{{ $inner := replaceRE "^\r?\n" "" .Inner | string }} {{ if len .Params | eq 0 }}
{{ $inner }}
{{ else }}