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
dollarmath matches aggressively #305
Comments
I think this is gonna be a tricky one depending on the use-case. In scientific fields it is super common to use dollar math for equations, which is why this is turned on by default (since MyST grew out of Jupyter Book, and that is a data science-specific use-case). To get around this, you can just "escape" the dollar signs. Can you try the following:
? |
I suggest you re-read https://myst-parser.readthedocs.io/en/latest/using/syntax.html#dollar-delimited-math 😉: This is exactly what I'm open to discussion, as to whether or not these should be |
For my use case, I'm fine with just setting |
yeh no worries, it obviously just a bit problematic to remove dollarmath completely as a default now, which might break a lot of peoples docs |
Hmmm, should we close this one? I don't think it's actionable since we're not going to change the default. Do we need to document something more clearly? |
All good for me - just wanted to check the defaults :) |
🙏 Fixed by #505 |
Describe the bug
If the Markdown document contains:
Then, unless
myst_enable_extensions = []
is set inconf.py
, the HTML output is:To Reproduce
Expected behavior
A less surprising result would be:
I don't know MathJax as I've never used it. Maybe it's impossible to determine that
$10, and Bob gives Eve $
is not a math string. If that's the case, it might be a good idea to not includedollarmath
by default.The text was updated successfully, but these errors were encountered: