markdown-it-lazyload 0.1.1

A markdown-it plugin to add lazy to image tags' loading property
Documentation
  • Coverage
  • 40%
    2 out of 5 items documented1 out of 3 items with examples
  • Size
  • Source code size: 31.37 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 821.08 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 26s Average build duration of successful builds.
  • all releases: 25s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • yoshinorin/markdown-it-rust-plugins
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • yoshinorin

markdown-it-lazyload

markdown-it-lazyload markdown-it-lazyload

A markdown-it.rs plugin to add lazy to loading property in <img> tag.

Usage

let mut parser = markdown_it::MarkdownIt::new();
markdown_it::plugins::cmark::add(parser);
markdown_it_lazyload::add(parser);

md.parse("![Rust](https://example.com/example.png)").render();
// <p><img src="https://example.com/example.png" alt="Rust" loading="lazy"></p>

See the tests for more examples.

Specification