Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/google/docsy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeri Ochoa <gerino@google.com>2022-11-08 19:34:43 +0300
committerGeri Ochoa <gerino@protonmail.com>2022-11-11 19:51:06 +0300
commit246a2e1e80ce19b7f08d5820518882d59013429b (patch)
treeb208ce81f264a71f379b08a04b3b353351767cb5
parent90ee4810a7c07c1ac8f6baab41bb0b10585d408d (diff)
Fix readfile not rendering html codeHEADmain
-rw-r--r--layouts/shortcodes/readfile.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/layouts/shortcodes/readfile.html b/layouts/shortcodes/readfile.html
index 7d27caa..ce05aef 100644
--- a/layouts/shortcodes/readfile.html
+++ b/layouts/shortcodes/readfile.html
@@ -32,7 +32,7 @@ if the file is not found */}}
{{- highlight ($.Scratch.Get "filepath" | readFile | htmlUnescape |
safeHTML ) (.Get "lang") "" -}}
{{ else }}
- {{- $.Scratch.Get "filepath" | os.ReadFile | .Page.RenderString | htmlUnescape | safeHTML -}}
+ {{- $.Scratch.Get "filepath" | os.ReadFile | .Page.RenderString | safeHTML -}}
{{ end }}
{{ else }}