add json formatting to docs

This commit is contained in:
Bryton Hall 2022-08-31 21:34:46 -04:00
parent a2025cff43
commit 548188d3fa

View file

@ -4,7 +4,7 @@
{{ if in $text "\n" }}
{{ $text = print "''\n " (strings.TrimSuffix " " (replace $text "\n" "\n ") ) "''" }}
{{ else }}
{{ $text = jsonify $text }}
{{ $text = $text | jsonify (dict "indent" " ") }}
{{ end }}
<pre class="highlight"><code>{{ $text }}</code></pre>