From e1e585c9f51159fbc080e5d4eefdcd4b806810d8 Mon Sep 17 00:00:00 2001 From: Todd Date: Wed, 2 Mar 2022 09:33:08 -0600 Subject: [PATCH] switch markdownify to safeHTML (#1453) markdownify turns '--' into an emdash which makes the included scripts invalid for copying/pasting into a shell. --- website/layouts/shortcodes/script.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/layouts/shortcodes/script.html b/website/layouts/shortcodes/script.html index 1c689297a887..321ed1d7c4bd 100644 --- a/website/layouts/shortcodes/script.html +++ b/website/layouts/shortcodes/script.html @@ -1,3 +1,3 @@ {{ $file := .Get "file" | readFile }} {{ $lang := .Get "language" }} -{{ (print "```" $lang "\n" $file "```") | markdownify }} +{{ (print "```" $lang "\n" $file "```") | safeHTML }}