Skip to content

MathJax: allow passing custom JS config #14023

@randolf-scholz

Description

@randolf-scholz

Currently, sphinx allows customizing MathJax by passing a config dictionary for mathjax3_config

However, this has limitations, for example passing custom JavaScript preprocessing such as described here is not straightforward. For some discussion, see here: https://github.com/orgs/sphinx-doc/discussions/13147.

I propose that mathjax3_config should be allowed to, in addition to None or dict, be a single str that points to a .js file holding the custom mathjax config.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions