An open API service indexing awesome lists of open source software.

https://github.com/caub/markdown-it-imagination

Plugin for markdown-it image size support
https://github.com/caub/markdown-it-imagination

Last synced: 2 months ago
JSON representation

Plugin for markdown-it image size support

Awesome Lists containing this project

README

          

# 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