From 7e97de805d2a854482f02548c77e4781e9192f72 Mon Sep 17 00:00:00 2001 From: Ryan Soklaski Date: Thu, 28 May 2020 22:55:31 -0400 Subject: Update mathjax to version 2.7.7 There is a bug in latest.js in versions 2.7.5 and below; when the current version on the CDN is 3.0 or higher, latest.js will not use the highest version of 2.x, but instead will use the version from which latest.js has been taken. See the warning section on this page: http://docs.mathjax.org/en/latest/upgrading/v2.html This PR fixes that by pointing to 2.7.7, the latest version available on the CDN. --- sphinx/ext/mathjax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sphinx') diff --git a/sphinx/ext/mathjax.py b/sphinx/ext/mathjax.py index e13dcbeb7..cc3cd4ba3 100644 --- a/sphinx/ext/mathjax.py +++ b/sphinx/ext/mathjax.py @@ -96,7 +96,7 @@ def setup(app: Sphinx) -> Dict[str, Any]: # more information for mathjax secure url is here: # https://docs.mathjax.org/en/latest/start.html#secure-access-to-the-cdn app.add_config_value('mathjax_path', - 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?' + 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?' 'config=TeX-AMS-MML_HTMLorMML', 'html') app.add_config_value('mathjax_options', {}, 'html') app.add_config_value('mathjax_inline', [r'\(', r'\)'], 'html') -- cgit v1.2.3