vaakash / git-it-write

A WordPress plugin to publish markdown files present in a Github repository as posts to WordPress automatically.
https://www.aakashweb.com/wordpress-plugins/git-it-write/
GNU General Public License v3.0
43 stars 22 forks source link

Image captions require `{}` to render #49

Open sudara opened 3 weeks ago

sudara commented 3 weeks ago

Not sure if the documentation here needs updating or it's a bug, but the following work:

![alt text for the image](/_images/pic4.jpg "Caption for the image"){}
![alt text for the image](/_images/pic4.jpg "Caption for the image"){.aligncenter}

But the line used in the documentation does not:

![alt text for the image](/_images/pic4.jpg "Caption for the image")
vaakash commented 3 weeks ago

Hi @sudara,

{} is optional. It is used only to include attributes like classname or ID.

GIW uses parsedown extra like in the demo below. https://parsedown.org/extra/

If image is not rendered on your end without {}, can you please share final output of that image tag?

Thanks, Aakash