Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including markdown-it-implicit-figures with all npm packages installed. Try it out:

'use strict'; var md = require('markdown-it')(); var implicitFigures = require('markdown-it-implicit-figures'); md.use(implicitFigures, { dataType: true, figcaption: true }); var src = 'text with ![](img.png)\n\n![Will become caption.](fig.png "Foo bar")\n\nanother paragraph'; var res = md.render(src); console.log(res);

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

markdown-it-implicit-figures v0.12.0

Render images occurring by itself in a paragraph as `<figure><img ...></figure>`, similar to pandoc's implicit_figures

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free