markdown-it-imagination

1.0.1 • Public • Published

markdown-it-imagination

Plugin for markdown-it image, allows to pass image sizes ![foo](foo.jpg "=100x80")

Options:

  • lazy: boolean [true] If enabled, it adds loading="lazy" attribute to the img
  • caption: boolean|1 [true] If enabled it converts title into a figcaption (and wraps in figure), if sets to 1, it keeps title attr in img

Examples: see index.test.js

Package Sidebar

Install

npm i markdown-it-imagination

Weekly Downloads

25

Version

1.0.1

License

ISC

Unpacked Size

4.28 kB

Total Files

5

Last publish

Collaborators

  • caub