More security docs and other minor improvements

This commit is contained in:
2022-06-20 14:21:19 +00:00
parent c66a1cbf9a
commit 10dca2972d
7 changed files with 39 additions and 4 deletions

View File

@@ -0,0 +1,5 @@
<div class='block'>
{{ range (after 1 (split .Inner "\n")) }}
<p>{{ markdownify . }}</p>
{{ end }}
</div>

View File

@@ -5,6 +5,6 @@
{{ $content := .Inner }}
{{ $in := split .Inner "\n" }}
{{ if gt (len $in) 1 }}
{{ $content = (delimit (after 1 $in) "\n") }}
{{ $content = (delimit (after 2 $in) "\n") }}
{{ end }}
{{ transform.Highlight (htmlUnescape $content) (.Get 0) (delimit $opts ",") }}