A remarkable plugin to render images as <figure>
elements.
npm install remarkable-figure-plugin
const figure = require('remarkable-figure-plugin')
const md = new Remarkable()
md.use(figure)
md.render('![alt](url "title")')
<p><figure><img src="url" alt="alt" title="title"><figcaption>title</figcaption></figure></p>
If you have a question, found a bug or want to propose a feature, have a look at the issues page.