-
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
nbsphinx compatability with mathjax3_config['options']['processHtmlClass']
override
#394
Comments
Thanks for opening your first issue here! Engagement like this is essential for open source projects! 🤗 |
I can confirm that it starts with the recent |
Heya, can you confirm that you do not have any specific configuration for mathjax in your conf.py?
It is possible to downgrade; it will also downgrade to sphinx 3, because 0.14 does not support sphinx 4 but should not just uninstall it entirely. If you have any different behaviour, I would raise this with the dependency manager you are using (e.g. pip/conda) |
or perhaps you are using nbsphinx as well, which also overrides this setting? https://github.com/spatialaudio/nbsphinx/blob/4fb55864ab21487363ad9f9eedcff1730a3325ef/src/nbsphinx.py#L1890 |
This is our conf.py: https://github.com/PyTorchLightning/pytorch-lightning/blob/master/docs/source/conf.py And yes it seems we have nbsphinx too |
yeh I'll blame that all on nbsphinx then lol, but I'll have a look at making a change to accommodate it
Note this should be |
mathjax3_config['options']['processHtmlClass']
is being overridden cannot be turned offmathjax3_config['options']['processHtmlClass']
override
so it is about the order as plugins are used? |
|
No (nbsphinx is after myst-parser in the pytorch extensions), probably the order/priority of events. Its not really ideal that either package has to override the (global) configuration (there is a long open PR for this sphinx-doc/sphinx#5504), but such is life Of course, you could always use https://github.com/executablebooks/MyST-NB, which is directly integrated with myst-parser 😉 |
@chrisjsewell this is resolved for us by |
Describe the bug
Yesterday myst parser updated and now warns:
Setting `myst_mathjax_classes = None`` as per instruction does not work, and generates another batch of warnings:
The docs explain something here.
I tried also
update_mathjax=False
and setting values formyst_mathjax_classes=...
Expected behavior
No warning, or a solution to fix the underlying reason why it gets shown.
Environment
jupyter-book --version
: xAdditional context
It is not possible to downgrade to 0.14.0 or sphinx gets uninstalled. Why?
The text was updated successfully, but these errors were encountered: