{{- $result := transform.HighlightCodeBlock . }} {{- $caption := .Attributes.caption }} {{- $title := .Attributes.title }} {{- if $caption }} {{- printf "" (string (add .Ordinal 1)) | safeHTML }}
{{ with $title }}

{{.}}

{{ end }}
{{$result.Inner}}
{{$caption | markdownify}}
{{ printf "" (string (add .Ordinal 1)) | safeHTML }} {{ else }} {{- printf "" (string (add .Ordinal 1)) | safeHTML }}
{{- with $title }}

{{.}}

{{- end }}
{{$result.Inner}}
{{- printf "" (string (add .Ordinal 1)) | safeHTML }} {{ end }}