{{- $caption | markdownify -}} {{- with $attrlink }} {{- end -}} {{- $attr | markdownify -}} {{- if $attrlink }}{{ end }}