Description
Context
I was reading the documentation regarding images because I wanted to add captions to my images: Image captions (documentation)
In order to add a caption to an image, one has to use HTML.
Description
Use the Alt text of the image, already available in the markdown syntax, to generate automatically the caption.
A feature flag could be set up so that users can choose whether or not they want the caption to be displayed.
Here is a concrete example:

The image would be rendered, wrapped with a <figure>
and a <figcaption>My awesome image </figcaption>
describing it.
Related links
Use Cases
Use case from an author's perspective: It is a very common thing to want to name figures we use in a document
Use case from an user's perspective: An inserted image would be described once, without having to describe both an alt text and a caption (DRY)
Visuals
No response
Before submitting
- I have read and followed the change request guidelines.
- I have verified that my idea is a change request and not a bug report.
- I have ensured that, to the best knowledge, my idea will benefit the entire community.
- I have included relevant links to the documentation, related issues and discussions to underline the need for my idea.