Skip to content

rehype plugin to add width and height attributes to external images

License

Notifications You must be signed in to change notification settings

theMosaad/rehype-external-img-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rehype-external-img-size

rehype plugin to add width and height attributes to external images.

This is rquired to use the Next.js Image component for external images in your markdown. it can also be used to improve Cumulative Layout Shift: Images without dimensions

Installation

npm install rehype-external-img-size

About

rehype plugin to add width and height attributes to external images

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published