Skip to content

feat: support markdown style math tags #12149

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

Merged
merged 2 commits into from
Aug 30, 2022

Conversation

miketheman
Copy link
Member

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 [email protected]

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 <[email protected]>
@miketheman miketheman requested a review from a team as a code owner August 30, 2022 00:14
@miketheman
Copy link
Member Author

Example of using both the block and inline:

Screen Shot 2022-08-29 at 8 15 12 PM

@ewdurbin ewdurbin enabled auto-merge (squash) August 30, 2022 10:26
@ewdurbin ewdurbin merged commit 6b82264 into pypi:main Aug 30, 2022
@miketheman miketheman deleted the miketheman/support-math-markdown branch August 30, 2022 10:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for mathematical expressions in Markdown Add suport for math expressions
2 participants