markdown-it-imagination
Version:
Plugin for markdown-it image size support
10 lines (6 loc) • 381 B
Markdown
# markdown-it-imagination
Plugin for markdown-it image, allows to pass image sizes ``
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