Skip to content

Commit 2c5541e

Browse files
authored
Clean up readcode shortcode (#411)
1 parent c494fdc commit 2c5541e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

layouts/shortcodes/readcode.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
<a href='{{ .Get "file" }}' download>Download {{ path.Base $filename }}</a>
55
</div>
66
<div class="readcode-code">
7-
{{- print "```" (.Get "lang") "\n" (readFile $filename) "```" | safeHTML | markdownify -}}
7+
{{- highlight (readFile $filename) (.Get "lang") }}
88
</div>
99
</div>

0 commit comments

Comments
 (0)