pypa / readme_renderer

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

Allow figcaption through clean.py #285

Closed miketheman closed 10 months ago

miketheman commented 1 year ago

Docutils generates a figcaption tag for image captions that isn’t being recognized yet and displays raw html. Example: https://pypi.org/project/sphinxcontrib-mermaid/

### Tasks
- [x] Add a test case for RST that implement an image with a caption
- [x] Add figcaption tag to allowed tags