{{ $caption := .caption | markdownify }} {{ $content := .content | markdownify }} {{ $float := .float }} {{ $margins := "" }} {{ if $float }} {{ if eq $float "start" }} {{ $margins = "me-4" }} {{ else if eq $float "end" }} {{ $margins = "ms-4" }} {{ else }} {{ errorf "invalid float: %q" $float }} {{ end }} {{ end }}
{{ $content }}
{{ with $caption }}
{{ . }}
{{ end }}