Fix max-width img for files not lazy loading
What does this MR do and why?
This MR fixes an issue (identified by this HN comment) with image widths in non-markdown files. Here's an example on .com.
Screenshots or screen recordings
| Before | After | After (markdown still works) |
|---|---|---|
![]() |
![]() |
![]() |
How to set up and validate locally
-
Upload a large image to a project repo
-
Create a
.orgfile referencing with content like:** The image [[file:path/to/wide_image.jpg]] -
Open the newly created
.orgfile. The image should be rendered but constrained to the file container.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Paul Slaughter


