$v := $attributes }}
  {{- if eq $k "title" }}
    {{- $title = $v }}
  {{- else if eq $k "wrap" }}
    {{- $wrap = $v }}
  {{- else }}
    {{- $otherAttributes = (dict $k $v) | merge $otherAttributes }}
  {{- end }}
{{- end }}
{{- $attributes = $otherAttributes }}
{{- if eq (printf "%T" $wrap) "string" }}
  {{- $wrap = (eq $wrap "true") }}
{{- end }}

{{- /* enrich attributes */}}
{{- $attributes = merge $attributes (dict "class" (delimit (append (index $attributes "class" | default slice) "highlight" slic