-
Notifications
You must be signed in to change notification settings - Fork 27
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
Support gitlab-style inline math $a=b
$
#20
Comments
Since 15.5 gitlab supports inline math surrounded by only dollar signs only: https://gitlab.com/gitlab-org/gitlab/-/issues/21757 Their regular expression to avoid treating currencies as math is here |
I agree with @kalvdans and think that I guess in essence, all it takes is to change this line Line 122 in 0408d7a
to inline_math = re.compile(r"\$(.*?)\$") and then adapt the tests. What do you think @CrossNox ? 😊 |
Any news regarding this issue? |
No work done yet, but any time soon I'll do a pull request to support the new style with only dollar signs. It is in the backlog at my workplace. |
Pull request up at #62; please try it out @milannnnn and @alexisthual! We hit https://gitlab.com/gitlab-org/gitlab/-/issues/389949 preventing some expressions to render correctly in gitlab; the generated mathjax with m2r2 + sphinx looks ok though. You can get the PR backported to v0.3.2 by writing this in your requirements.txt:
|
Since miyakogi@eeb618b m2r supports inline math with dollar signs inside backticks, but gitlab uses backticks inside dollar signs.
We would like to render the same document with gitlab and with sphinx, and so would like m2r2 to support the gitlab way.
The text was updated successfully, but these errors were encountered: