2022-06-07 13:54:07 +00:00
|
|
|
{{ $opts := slice "lineNos=table" "tabWidth=2" "noClasses=false" "style=fruity" }}
|
|
|
|
{{ if .Get 1 }}
|
|
|
|
{{ $opts = $opts | append (split (.Get 1) ",") }}
|
|
|
|
{{ end }}
|
2022-06-10 15:35:31 +00:00
|
|
|
{{ $content := .Inner }}
|
|
|
|
{{ $in := split .Inner "\n" }}
|
|
|
|
{{ if gt (len $in) 1 }}
|
2022-06-21 13:58:14 +00:00
|
|
|
{{ $content = (delimit (after 1 $in) "\n") }}
|
2022-06-10 15:35:31 +00:00
|
|
|
{{ end }}
|
|
|
|
{{ transform.Highlight (htmlUnescape $content) (.Get 0) (delimit $opts ",") }}
|