{{- $caption := .Attributes.caption -}}
{{- $type := .Type | default "text" -}}
{{- $options := .Attributes.options | default "default=1" -}}
{{- $hash := print (truncate 8 "" (sha256 .Inner)) .Ordinal -}}
{{- $id := print "code-block-" $hash -}}
{{ $type }}
{{ highlight .Inner $type (print $options ",lineAnchors=" "code-line-" $hash) }}
{{ with $caption }}
{{ end }}