lonekorean/wordpress-export-to-markdown

Consider using `<figure>` elements to preserve figure captions

Closed this issue · 2 comments

Right now, figure captions are converted to simple image with a separate paragraph of text under it. E.g.

![](image src)

Image caption

It would be nice if it was preserved that the text was an image caption, by wrapping it in a <figure> element:

<figure>

![](image src)

<figcaption>Image caption</figcaption>

</figure>

This is an alternative syntax in pure markdown (that can be styled easily with CSS):

https://answers.abstractbrain.com/how-to-create-an-image-gallery-in-markdown/

Fixed in v2.2.5.