-
Notifications
You must be signed in to change notification settings - Fork 195
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 for LaTeX math environments like in Jupyter notebooks? #380
Comments
See https://myst-parser.readthedocs.io/en/latest/using/syntax-optional.html#direct-latex-math, |
Cool, that seems to be it! Is there by any chance a Python package that has the same extensions enabled that are also used in the Jupyter project? If not, I guess I'll have to create my own ... |
I'm not sure I understand what you mean by this. What is the goal you want to achieve with the python package? |
I would like to make it easy for people to use Markdown files in Sphinx which support the same (or at least a very similar) syntax to what they are used to from Jupyter notebooks. And with "easy" I mean: one Python package, one entry in |
So basically myst-parser with hard-coded configuration 🤷 |
Exactly. Sorry that I wasn't clearer about that. |
To generalize this a bit: it feels like we are talking about distributions of Is there a graceful way to let people bundle up @mgeier - assuming that you're doing this at the |
I mean obviously it is entirely up to you if you want to re-write myst-parser in your own package. |
Yep - that's what I imagined too re: "distributions". I think that we should be careful that we don't dilute the meaning of "MyST" in the process (e.g., we may want to consider that a distribution of MyST must be a strict superset of MyST syntax, it cannot disable any core MyST syntax) but it'd be a useful extension point to be able to have |
I'm not planning to re-write MyST-Parser in the short term (I'm still sitting on a half-finished but dormant CommonMark parser project, but currently I'm not working on it), I was indeed talking about something like #342 (comment). Ideally I'd like to use an existing package, but if it's only a few lines I can also make my own. |
ok well I will close this anyhow 👍 |
I just had an epiphany: Everything already works as expected, I just had to document it: spatialaudio/nbsphinx#561 So I won't have to create my own MyST-based Python package after all! I will not need anything that we just discussed in this issue, but it might still be interesting for other people who might want to use MyST-Parser with Jupyter-like Markdown extensions. But I'm fine with closing this, I won't be needing it anymore. Thanks for your help, though! |
I was trying to use MyST-Parser with
nbsphinx
in spatialaudio/nbsphinx#560, but it doesn't seem to support math environments likeDescribe the solution you'd like
It would be great if that worked just like in Jupyter notebooks.
Is there an extension I can enable to get this?
The text was updated successfully, but these errors were encountered: