Skip to content
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

Syntax highlighting with Markdown code blocks interacts badly with Mathjax #4037

Closed
arradha opened this issue Sep 26, 2018 · 1 comment
Closed

Comments

@arradha
Copy link
Contributor

arradha commented Sep 26, 2018

Any text between $ characters within markdown seems to be rendered in tex math mode using MathJax. However, within code blocks with language specified (e.g., enclosed by ```python and ```), this is almost always the wrong choice. It interacts badly with any syntax highlighting.

See below, where the text '<newline> d = '^[0-9] has the wrong colour and the second = is rendered in the wrong typeface. On the other hand, MathJax is not fully enabled either ``` $\frac{1}{2} $ ``` is rendered as is, and not converted to the math rendering.

image

@ian-r-rose ian-r-rose added the bug label Sep 26, 2018
@arradha
Copy link
Contributor Author

arradha commented Sep 27, 2018

A patch is available for this issue is available in #4041.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants