Skip to content
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

How to disable MathJax? #5568

Closed
erosennin opened this issue Oct 27, 2018 · 2 comments
Closed

How to disable MathJax? #5568

erosennin opened this issue Oct 27, 2018 · 2 comments

Comments

@erosennin
Copy link
Contributor

Problem

Recent versions of Sphinx unconditionally include MathJax.js in HTML files, even if sphinx.ext.mathjax is not enabled in conf.py:

<script async="async" type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>

This can be an issue for projects that do not use maths and do not need a math renderer.

Even with html_math_renderer = None or html_math_renderer = 'imgmath' in conf.py, MathJax.js is still there.

Is there a way to disable loading MathJax.js?

Thanks. :)

Procedure to reproduce the problem

  1. Create a new project with sphinx-quickstart.
  2. Answer no when asked if you want to enable MathJax.
  3. make html
  4. grep -i mathjax _build/html/index.html

Environment info

  • OS: Linux
  • Python version: 3.6.6
  • Sphinx version: 1.8.1
@mitya57
Copy link
Contributor

mitya57 commented Oct 28, 2018

This is already fixed in #5536.

@erosennin
Copy link
Contributor Author

Great, thanks!

@tk0miya tk0miya added this to the 1.8.2 milestone Oct 28, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants