GitHub adds grey background color to <img> in markdown #192847
Replies: 2 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
Other
Body
Whenever an
<img>has thewidthandheightattributes set, GitHub adds a poor-looking background color. For example:https://github.com/mui/base-ui/blob/master/packages/react/README.md
where the source is
<img width="150" height="133" src="https://base-ui.com/static/logo.svg" alt="Base UI logo">. This is a recent regression, it worked OK not so long ago.One workaround is to remove the height or width attribute, but I want to add both so that the space is reserved while the image is loading.
Beta Was this translation helpful? Give feedback.
All reactions