lonekorean / wordpress-export-to-markdown

Converts a WordPress export XML file into Markdown files.
MIT License
1.07k stars 216 forks source link

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

Closed LeaVerou closed 6 months ago

LeaVerou commented 1 year ago

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>
collimarco commented 11 months ago

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/

lonekorean commented 6 months ago

Fixed in v2.2.5.