pypa / readme_renderer

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

Add suport for math expressions #214

Closed ThomasTNO closed 1 year ago

ThomasTNO commented 2 years ago

It would be interesting if we could add support for math expressions, in line with the GitLab flavored markdown. https://docs.gitlab.com/ee/user/markdown.html#math

miketheman commented 2 years ago

Thanks for the suggestion! This renderer relies heavily on https://github.com/theacodes/cmarkgfm , which in turn relies on https://github.com/github/cmark-gfm - and that syntax would need to support math , not this renderer.

See https://github.com/github/cmark-gfm/issues/6 and https://github.com/commonmark/cmark/issues/439 for upstream issues.