Releases: Antonio-Laguna/markdown-it-image-figures
Releases · Antonio-Laguna/markdown-it-image-figures
2.1.1
2.1.0
2.0.2
2.0.1
What's Changed
- Bump
minimist
from1.2.5
to1.2.6
by @dependabot in #9 - Cleaning package.json and ensuring the latest practices are used.
v2.0.0
Changes
- Updated dependencies to avoid Moderate security issue: https://npmjs.com/advisories/1773
- Changed the behaviour of
lazy
which, if truthy, it will only addloading="lazy"
to the image (see below on breaking). - Added support for
async
decoding. Usingasync: true
as an option, will adddecoding="async"
to all images by default. - Added
removeSrc
option which, if truthy, will allow you to remove the attributesrc
and store it asdata-src
. - Added
classes
option which will be appended / added as classes to the images. - Ensuring now that both
async
andlazy
can be overridden per image base. - Enhanced the README to be more Web Performance aligned by default.
Breaking
lazy
now acts as a toggle to align with evergreen browsers which will only enableloading="lazy"
on an image. If you want to replicate the same behaviour you got withlazy: true
you need to use the following options:{ lazy: true, removeSrc: true, classes: 'lazy' }
Thanks to @paulrobertlloyd for the suggestion on #7 !