mirror of
https://github.com/panr/hugo-theme-terminal.git
synced 2025-03-15 02:39:06 +03:00
Merge pull request #267 from calefrey/patch-1
Make prismjs shortcode CRLF tolerant
This commit is contained in:
commit
e4b831ac6b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue