github / markup

Determines which markup library to use to render a content file (e.g. README) on GitHub
MIT License
5.87k stars 3.39k forks source link

Math rendering should work for reStructuredText #1578

Open Alhadis opened 2 years ago

Alhadis commented 2 years ago

reStructuredText includes facilities for marking up mathematical expressions, just like GitHub-flavoured markdown does:

Syntax
Markdown reStructuredText
Block syntax $$ ... $$ `.. math::`
Inline syntax $ ... $ :math:`...`

Unfortunately, only Markdown gets to enjoy the properly rendered equations:

Rendered output
Markdown reStructuredText

Block syntax

$$\sqrt{3x-1}+(1+x)^2$$ \sqrt{3x-1}+(1+x)^2
Inline syntax $\sqrt{3x-1}+(1+x)^2$ \sqrt{3x-1}+(1+x)^2

Since reStructuredText's uses MathJax's syntax for its equations, this should be a trivial fix on GitHub's end.

github-actions[bot] commented 2 months ago

Stale issue message

Alhadis commented 2 months ago

Stale issue message

Not stale. This is still an issue.

github-actions[bot] commented 3 weeks ago

Stale issue message

Alhadis commented 3 weeks ago

Stale issue message

See above.