You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature request: width & height attributes for images in Markdown #1010
I noticed that images in Markdown don't have width/height attributes, which leads to a layout shift for Markdown pages that contain images.
Would it be possible to add support (opt-in?) for this? It will require reading image files during Markdown rendering, which could be a bit slow, but it would be a good stopgap until something like #441 is available.
Activity
hyfdev commentedon Dec 3, 2026
You can already set them with attributes after the image:
The Markdown guide only shows attributes on headings and paragraphs, so I added an image example in #1021.
Reading the sizes automatically would work for images in
public/as an opt-in. Would that cover your case?