Markdown: horizontal lines don't play nicely with `align=right`
Summary
The horizontal underline that is rendered underneath headers overlaps images that are positioned using align="right".
What is the current bug behavior?
Here is how my project's README renders on GitLab:
Notice that the horizontal lines underneath the Install and Purpose headings stretch over top of the image.
You can view this for yourself here: https://gitlab.com/nfriend/ts-key-enum
What is the expected correct behavior?
Here is how my project's README renders on GitHub:
You can view this for yourself here: https://github.com/nfriend/ts-key-enum
Steps to reproduce
See the source for the README in the screenshots above here: https://gitlab.com/nfriend/ts-key-enum/blob/382de111bdbafce990786370e57be2de6d3d34fc/README.md
Example Project
https://gitlab.com/nfriend/ts-key-enum
Output of checks
This bug happens on GitLab.com

