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
- Host: GitHub
- URL: https://github.com/caub/markdown-it-imagination
- Owner: caub
- Created: 2022-06-07T12:11:01.000Z (about 4 years ago)
- Default Branch: dev
- Last Pushed: 2022-06-07T15:39:14.000Z (about 4 years ago)
- Last Synced: 2025-09-22T04:25:53.643Z (9 months ago)
- Language: JavaScript
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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