Skip to content

Commit

Permalink
switch markdownify to safeHTML
Browse files Browse the repository at this point in the history
markdownify turns '--' into an emdash which makes the included scripts
invalid for copying/pasting into a shell.
  • Loading branch information
tzneal committed Mar 2, 2022
1 parent 5e8dc24 commit 94a4caa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website/layouts/shortcodes/script.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{ $file := .Get "file" | readFile }}
{{ $lang := .Get "language" }}
{{ (print "```" $lang "\n" $file "```") | markdownify }}
{{ (print "```" $lang "\n" $file "```") | safeHTML }}

0 comments on commit 94a4caa

Please sign in to comment.