{{ $caption := .Get "caption" }}
{{ $lang := .Get 0 | default (.Get "lang") | default "plaintext" }}
{{ $options := .Get "options" }}

{{ $content := highlight (.Inner | replaceRE "^\n" "") $lang $options }}

{{ partial "paige/figure.html" (dict
    "caption" $caption
    "content" $content
) }}
