{{ $caption := .caption | markdownify }}
{{ $content := .content | markdownify }}

<figure class="align-items-center d-flex flex-column justify-content-center paige-figure">
    <div {{ if $caption }} class="mb-2" {{ end }}>{{ $content }}</div>
    {{ with $caption }}
        <figcaption class="figure-caption">{{ . }}</figcaption>
    {{ end }}
</figure>
