-
Notifications
You must be signed in to change notification settings - Fork 197
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
mathjax_config ignored #263
Comments
Any updates on this? I just tested the master branch, and this is still an issue. I've been pinning myst-parser to 0.11.2 because of this. |
Have you read https://myst-parser.readthedocs.io/en/latest/using/syntax.html#mathjax-and-math-parsing? |
Wait, this behavior is intentional? I guess I can fix this by adding
That doesn't make any sense to me. Why is myst ignoring the mathjax config? To me it makes more sense for it to reuse the same config as RST by default. |
Because you should not be relying on MathJax to parse source text; it should be handled by the markdown parser, otherwise you end up with parsing errors, such as faulty escaping, which is exactly why this was introduced. If you are enclosing you're latex in dollar signs then this should not be an issue. If you can provide me with some example text then I can tell you whether there should be an issue or not. |
To clarify, it is not ignoring the configuration, it is altering it. |
I do use dollar signs. I put the reproducer in the OP. |
It would be really helpful to have a minimal working example of the issue. |
I think I see the issue now:
Because it's enclosed in the So yes in this case you would need to use |
Well or just use Probably even just removing the dollar signs would work |
I'd say this is a pretty niche use case (wrapping math in raw html), but one that |
Obviously let me know if that helped 🤞 |
Describe the bug
Something between 0.11.2 and 0.12.1 broke the reading of mathjax_config in conf.py. This broke the math rendering in my document. See Quansight-Labs/ndindex#89.
To Reproduce
Steps to reproduce the behavior:
Build the ndindex docs with Myst 0.11.2 and 0.12.1 and compare slices.html. When built with 0.12.1, the math does not render. This is because the MathJax config is not read correctly. See Quansight-Labs/ndindex@e88befd#diff-67d11508f54b1191e72d9abd23652cbe, which is the difference in the file.
Expected behavior
The ndindex repo is here https://github.com/Quansight/ndindex
The text was updated successfully, but these errors were encountered: