Merge pull request #267 from calefrey/patch-1

Make prismjs shortcode CRLF tolerant
This commit is contained in:
Radek Kozieł 2021-08-24 14:46:30 +02:00 committed by GitHub
commit e4b831ac6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
{{ $inner := replaceRE "^\n" "" .Inner | string }}
{{ $inner := replaceRE "^\r?\n" "" .Inner | string }}
{{ if len .Params | eq 0 }}
<pre><code>{{ $inner }}</code></pre>
{{ else }}