Download the PHP package simonvomeyser/commonmark-ext-lazy-image without Composer
On this page you can find all versions of the php package simonvomeyser/commonmark-ext-lazy-image. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download simonvomeyser/commonmark-ext-lazy-image
More information about simonvomeyser/commonmark-ext-lazy-image
Files in simonvomeyser/commonmark-ext-lazy-image
Download simonvomeyser/commonmark-ext-lazy-image
More information about simonvomeyser/commonmark-ext-lazy-image
Files in simonvomeyser/commonmark-ext-lazy-image
Vendor simonvomeyser
Package commonmark-ext-lazy-image
Short Description Adds support for lazy images to the phpleague/commonmark markdown parser package
License MIT
Package commonmark-ext-lazy-image
Short Description Adds support for lazy images to the phpleague/commonmark markdown parser package
License MIT
Please rate this library. Is it a good library?
Informations about the package commonmark-ext-lazy-image
Extension to render lazy images in markdown
This adds support for lazy images to the league/commonmark package version ^2.0
.
Install
⚠️ When you are using Version 1.0 of league\commonmark
The current version of this pacakge is only compatible with `League\CommonMark 2.0`, for `1.0` compatibility install the latest `1.0` version of this package like so: You can find the old documentation [here](https://github.com/simonvomeyser/commonmark-ext-lazy-image/tree/40fcb3ec18b1c84e21a0b0b635ad021f8ec933bd).
Example
This creates the following HTML
Options/Configuration
By default, only the loading="lazy"
attribute is added
While this should hopefully be sufficient in the future, you can use the provided options to integrate with various lazy loading libraries.
Here is an example how to use this package with the lozad library:
This creates the following HTML
All versions of commonmark-ext-lazy-image with dependencies
PHP Build Version
Package Version
The package simonvomeyser/commonmark-ext-lazy-image contains the following files
Loading the files please wait ....