-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add suport for math expressions #214
Labels
Comments
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 github/cmark-gfm#6 and commonmark/cmark#439 for upstream issues. |
This was referenced Aug 3, 2022
miketheman
added a commit
to miketheman/warehouse
that referenced
this issue
Aug 30, 2022
We can configure MathJax to detect the convention of single dollar signs in addition to its other methods, as it's not on by default. The inline script needs to be supported by our CSP, and if the stanza ever changes, we'll need to recalculate the hash and update the CSP accordingly. Resolves pypi#12009 Resolves pypa/readme_renderer#214 Signed-off-by: Mike Fiedler <miketheman@gmail.com>
ewdurbin
added a commit
to pypi/warehouse
that referenced
this issue
Aug 30, 2022
We can configure MathJax to detect the convention of single dollar signs in addition to its other methods, as it's not on by default. The inline script needs to be supported by our CSP, and if the stanza ever changes, we'll need to recalculate the hash and update the CSP accordingly. Resolves #12009 Resolves pypa/readme_renderer#214 Signed-off-by: Mike Fiedler <miketheman@gmail.com> Signed-off-by: Mike Fiedler <miketheman@gmail.com> Co-authored-by: Ee Durbin <ewdurbin@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: