elegant
elegant copied to clipboard
Option to create captions for figures
I think for images it would be really cool if we could have an option to not just create a title and alt text, but also a caption for the figure and wrap everything into a figure.
e.g.:

currently becomes:
<img alt="Screenshot of a very cool Zsh prompt" src="https://matija.suklje.name/images/Hook_Zsh_prompt.png" title="My cool Zsh prompt">
but I would like to see:
<figure>
<img alt="Screenshot of a very cool Zsh prompt" src="https://matija.suklje.name/images/Hook_Zsh_prompt.png" title="My cool Zsh prompt">
<figcaption>My cool Zsh prompt</figcaption>
</figure>
There is a simple Python plugin for this already: https://github.com/anteprandium/mdx_figcaption
I would also be very interested in this! There is another Python-Markdown extension, which does this: Markdown_Captions
So far, it seems to work in combination with pelican and elegant.