Skip to content

nbsphinx compatability with mathjax3_config['options']['processHtmlClass'] override #394

@awaelchli

Description

@awaelchli

Describe the bug

Yesterday myst parser updated and now warns:

WARNING: `mathjax3_config['options']['processHtmlClass']` is being overridden by myst-parser to tex2jax_process|mathjax_process|math. Set `myst_mathjax_classes = None` if this is undesirable.

Setting `myst_mathjax_classes = None`` as per instruction does not work, and generates another batch of warnings:

WARNING: The config value `myst_mathjax_classes' has type `NoneType', defaults to `str'.
WARNING: myst configuration invalid: 'mathjax_classes' must be <class 'str'> (got None that is a <class 'NoneType'>).
WARNING: `mathjax3_config['options']['processHtmlClass']` is being overridden by myst-parser to tex2jax_process|mathjax_process|math. Set `myst_mathjax_classes = None` if this is undesirable.

The docs explain something here.
I tried also update_mathjax=False and setting values for myst_mathjax_classes=...

Expected behavior

No warning, or a solution to fix the underlying reason why it gets shown.

Environment

  • Python Version [e.g. 3.7.1]: 3.8
  • Package versions or output of jupyter-book --version: x
  • Operating System: macos

Additional context

It is not possible to downgrade to 0.14.0 or sphinx gets uninstalled. Why?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions