{{- $captionType := "embeddedTextCaption" -}} {{- $type := "image" -}} {{- with .Get "type" -}} {{- $type = . -}} {{- end -}} {{ with .Parent -}} {{- with .Get "type" -}} {{- $type = . -}} {{- end -}} {{- if eq .Name "transcribed-audio" -}} {{- $captionType = "transcript" -}} {{- end -}}
Toggle {{ $type }} transcript
{{ if eq (.Get "hlevel") "3" -}}

{{ $type | humanize }} transcript

{{- else -}}
{{ $type | humanize }} transcript
{{- end -}} {{- end }}
{{ .Inner | markdownify | safeHTML }}