pypa / readme_renderer

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

HTML input tags do not render #187

Closed secu-design closed 2 years ago

secu-design commented 3 years ago

Describe the bug

Checkboxes in markdown format are displayed as follows on websites pypi.org and test.pypi.org:

<input type="checkbox" checked="" disabled="" /> No root privileges required.
<input type="checkbox" checked="" disabled="" /> Drives get unmounted and locked (if encrypted) before writing.

Checkboxes should be displayed like:

-[x] No root privileges required. -[x] Drives get unmounted and locked (if encrypted) before writing.

In my setup.cfg i used:

long_description = file: README.md, CHANGELOG.md
long-description-content-type = text/markdown; charset=UTF-8; variant=GFM

Same result with:

long-description-content-type = text/markdown

To Reproduce

You should see the bug on: https://pypi.org/project/USB-Imager/ Code: https://gitlab.com/skynet-devel/usb-imager

My Platform x86_64 GNU/Linux / x86_64 GNU/Linux

Browser Firefox 85.0.2 (64-Bit) Privacy Browser on Android 10 (API 29)