Markdown-It plugin that allows you to add <figure>s with <figcaption>s to your Markdown.
npm install @rbottomley/markdown-it-figureconst markdown = require('@rbottomley/markdown-it');
const md = markdown({
/* ... markdown-it options */
}).use(require('@rbottomley/markdown-it-figure'));#[Caption](/url/to/image.png)<figure>
<img src="/url/to/image.png" />
<figcaption>Caption</figcaption>
</figure>Includes a figure number and alt text for image.
#1234[Caption](/url/to/image.png [Alt Text])<figure id="figure-1234">
<img src="/images/foo.png" alt="Alt Text" />
<figcaption>
<span class="figure-id">1234: </span>
Caption
</figcaption>
</figure>- update dependencies.
- remove P tag from FIGCAPTION output.
- fork from @chromeos/static-site-scaffold-modules.