remarkable-figure-plugin
Version:
A remarkable plugin to render images as <figure> elements.
40 lines (25 loc) • 1.57 kB
Markdown
# remarkable-figure-plugin
**A remarkable plugin to render images as `<figure>` elements.**
[](https://www.npmjs.com/package/remarkable-figure-plugin)
[](https://travis-ci.org/derhuerst/remarkable-figure-plugin)
[](https://david-dm.org/derhuerst/remarkable-figure-plugin)
[](https://david-dm.org/derhuerst/remarkable-figure-plugin#info=devDependencies)

[](https://github.com/sponsors/derhuerst)
[](https://twitter.com/derhuerst)
## Installing
```
npm install remarkable-figure-plugin
```
## Usage
```js
const figure = require('remarkable-figure-plugin')
const md = new Remarkable()
md.use(figure)
md.render('')
```
```html
<p><figure><img src="url" alt="alt" title="title"><figcaption>title</figcaption></figure></p>
```
## Contributing
If you **have a question**, **found a bug** or want to **propose a feature**, have a look at [the issues page](https://github.com/derhuerst/remarkable-figure-plugin/issues).