README Markdown Rendering Bug when using img "align" attribute #207378
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. ⭐ |
|
Close, but it is not the heading element itself - that one is still The part that actually overlaps is the heading's bottom rule, not its text. Two workarounds that hold up today: 1. Use <img width="200" align="right" alt="Example Device" src="..." />
### Not a secure authenticator2. Or drop the float and use a two-column table if you want to keep <table>
<tr>
<td>
## Not a secure authenticator
Markdown still renders inside the cell as long as you keep the blank lines around it.
</td>
<td width="220"><img width="200" alt="Example Device" src="..." /></td>
</tr>
</table>And that is also why it looks fine here: comment bodies are rendered without the |
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
Body
You can see the issue on a real repo here: https://github.com/donatj/picopass
When you use the allowed
alignattribute of animgtag, alaheaders now overlap the image.
This did not used to be a problem. I've been using images like this for many years and it broke maybe a year ago and I've been patiently awaiting it to be fixed 😆
They appear to have been made
position: relativeHere is a screenshot of the issue:
More info
You can see here (currently, 2026-09-09) that it does not appear to be a problem rendering Markdown in community discussions. Just in READMEs
All reactions