Merge pull request #267 from calefrey/patch-1
Make prismjs shortcode CRLF tolerant
This commit is contained in:
commit
e4b831ac6b
@ -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 }}
|
||||
|
Loading…
Reference in New Issue
Block a user