pypa / readme_renderer

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

refactor: replace bleach with nh3 (ammonia) #295

Closed miketheman closed 1 year ago

miketheman commented 1 year ago

Refs: https://nh3.readthedocs.io/

Bleach has been deprecated.

This refactor includes"

Notable changes in the tests:

miketheman commented 1 year ago

Expecting failure for checked boolean attributes - see this issue for more.

miketheman commented 1 year ago

We could update the tests here as well to allow checked to become checked="" in the meantime, if we were worried about continued use of bleach.

di commented 1 year ago

We could update the tests here as well to allow checked to become checked="" in the meantime, if we were worried about continued use of bleach.

I think that's probably fine. Since they're equivalent, I don't think it really matters which one ends up being used.