Figures Setup#
Captioned figures require the attr_list
and md_in_html
markdown extensions. Add them to the markdown_extensions
configuration in mkdocs.yml
:
markdown_extensions:
- attr_list
- md_in_html
Example#
Markdown#
<figure markdown>
{ title="a starry night" alt="a dark green sky filled with stars." }
<figcaption>@Guillaume via Picsum</figcaption>
</figure>