
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
markdown-it-img-lazy
Advanced tools
a markdown-it plugin to better supporting image lazy loading
a markdown-it plugin to better supporting image lazy loading
The plugin will preferentially use native image lazy-loading, if the browser does not support it, it will be implemented through lozad
yarn add markdown-it-img-lazy
# or
npm i markdown-it-img-lazy
md.use(require('markdown-it-img-lazy'), /* Options */)
then you need
load Lozad.js in the head tag of your page
load imgLazy.js closer the </body> tag of your page

BooleantruefalseUse the native image lazy-loading for the web
if useNative = true
 -> <p><img alt="img" data-src="img.jpg" loading="lazy" class="lazy"></p>
if useNative = false
 -> <p><img alt="img" data-src="img.jpg" class="lazy"></p>
stringlazyfalseDefault class name for image
string Function''falseConfig prefix for src in images
FAQs
a markdown-it plugin to better supporting image lazy loading
The npm package markdown-it-img-lazy receives a total of 357 weekly downloads. As such, markdown-it-img-lazy popularity was classified as not popular.
We found that markdown-it-img-lazy demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.

Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.

Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.