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