diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-05-30 07:14:07 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-30 07:14:07 +0300 |
commit | 928149b730adb226532722f350f7f9726793db34 (patch) | |
tree | 46f049282798a099731bd3d2b35cff4cefd1fb9f | |
parent | 339e3a9f3d09acec831cb3f5e16a0ec1f70d6559 (diff) | |
parent | 1d332a2e0ad73297f86d228d5bbbe9423140b854 (diff) |
Merge pull request #7746 from rsokl/patch-1
Fix bug in mathjax: newest 2.x version not being loaded by latest.js
-rw-r--r-- | sphinx/ext/mathjax.py | 2 | ||||
-rw-r--r-- | tests/test_ext_math.py | 2 |
2 files changed, 2 insertions, 2 deletions
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') diff --git a/tests/test_ext_math.py b/tests/test_ext_math.py index b5de6cc1c..4df7d47c7 100644 --- a/tests/test_ext_math.py +++ b/tests/test_ext_math.py @@ -71,7 +71,7 @@ def test_mathjax_options(app, status, warning): content = (app.outdir / 'index.html').read_text() assert ('<script async="async" integrity="sha384-0123456789" ' - 'src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/latest.js?' + 'src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.7/latest.js?' 'config=TeX-AMS-MML_HTMLorMML"></script>' in content) |