pypa / readme_renderer

Safely render long_description/README files in Warehouse
Apache License 2.0
158 stars 88 forks source link

Allow align attribute for the HTML div tag #212

Closed akamhy closed 2 years ago

akamhy commented 2 years ago

The div tag's align attribute is used to center the project logo on GitHub's README.md but once you upload the project on PyPi the alignment just doesn't work.

I have a package repo on GitHub, https://github.com/akamhy/videohash.

I use <div align="center"> to center the package logo and it works fine on GitHub but on PyPi the logo just doesn't align.

<div align="center">
<img src="https://raw.githubusercontent.com/akamhy/videohash/main/assets/logo/logo-optimized.svg"><br>
</div>

Notice the wrong alignment on the PyPi page, https://pypi.org/project/videohash/.