14.1.0 • Published 4 months ago
markdown-it-image-size v14.1.0
markdown-it-image-size
Automatically adds width
and height
attributes to img
tags rendered by markdown-it.
How to use
const MarkdownIt = require("markdown-it");
const { markdownItImageSize } = require("markdown-it-image-size");
const mdRenderer = MarkdownIt();
mdRenderer.use(markdownItImageSize);
Why
Browsers use the width
and height
attributes to determine aspect ratios of images. If the attributes are set, the browser can reserve space for the image even though it's not finished loading yet, thus preventing cumulative layout shifts after images load.
14.1.0
4 months ago
14.0.0
5 months ago
14.0.1
5 months ago
13.3.3
5 months ago
13.3.2
5 months ago
13.3.1
10 months ago
13.2.0
1 year ago
13.3.0
1 year ago
13.2.1
1 year ago
12.0.0
2 years ago
13.1.1
2 years ago
13.2.0-0
2 years ago
13.0.0
2 years ago
13.0.1
2 years ago
13.2.0-1
2 years ago
0.4.1
2 years ago
0.4.0
2 years ago
0.3.0
2 years ago
0.2.0
2 years ago
0.1.6
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.2
3 years ago
0.1.1
3 years ago
0.1.0
3 years ago