Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
RunKit + npm: markdown-it-implicit-figures
node v18.11.0
endpoint
share
tweet
const md = require('markdown-it')(); const implicitFigures = require('markdown-it-implicit-figures'); md.use(implicitFigures, { dataType: true, figcaption: true }); const src = 'text with ![](img.png)\n\n![Will become caption.](fig.png "Foo bar")\n\nanother paragraph'; md.render(src) // output below
Created from: https://npm.runkit.com/markdown-it-implicit-figures
Loading…
Clone and edit this document