Skip to content

Releases: Antonio-Laguna/markdown-it-image-figures

2.1.1

07 Jan 22:16
a39b9a7
Compare
Choose a tag to compare
  • Update eslint to 8.31.0 (minor)
  • Update eslint-plugin-import to 2.26.0 (minor)
  • Update eslint-plugin-mocha to 10.1.0 (minor)
  • Update microbundle to 0.15.1 (major)
  • Update mocha to 10.2.0 (major)
  • Ensure vulnerabilities are fixed by updating package-lock.json

2.1.0

05 Apr 07:39
af1a9b4
Compare
Choose a tag to compare
  • Add figcaption:alt and figcaption:title options by @nzakas in #12

New Contributors

2.0.2

04 Apr 19:51
50bc599
Compare
Choose a tag to compare
  • Fixes issues with importing in ESM. #10

2.0.1

28 Mar 05:24
e2ea3c3
Compare
Choose a tag to compare

What's Changed

  • Bump minimist from 1.2.5 to 1.2.6 by @dependabot in #9
  • Cleaning package.json and ensuring the latest practices are used.

v2.0.0

17 Sep 11:02
d69459a
Compare
Choose a tag to compare

Changes

  • Updated dependencies to avoid Moderate security issue: https://npmjs.com/advisories/1773
  • Changed the behaviour of lazy which, if truthy, it will only add loading="lazy" to the image (see below on breaking).
  • Added support for async decoding. Using async: true as an option, will add decoding="async" to all images by default.
  • Added removeSrc option which, if truthy, will allow you to remove the attribute src and store it as data-src.
  • Added classes option which will be appended / added as classes to the images.
  • Ensuring now that both async and lazy 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 enable loading="lazy" on an image. If you want to replicate the same behaviour you got with lazy: true you need to use the following options: { lazy: true, removeSrc: true, classes: 'lazy' }

Thanks to @paulrobertlloyd for the suggestion on #7 !