From 9495b64d2c10977748eb9b4ecb93489902ea2967 Mon Sep 17 00:00:00 2001 From: Christian Lawson-Perfect Date: Wed, 5 Apr 2017 12:44:41 +0100 Subject: [PATCH] replace cdn.mathjax.org with cdnjs cdn.mathjax.org is shutting down: https://www.mathjax.org/cdn-shutting-down/ This changes the default MathJax URL in the math plugin, as well as references in README.md and test/examples/math.html --- README.md | 2 +- plugin/math/math.js | 2 +- test/examples/math.html | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 8e319351b76..2991ed13473 100644 --- a/README.md +++ b/README.md @@ -1137,7 +1137,7 @@ Reveal.initialize({ // other options ... math: { - mathjax: 'https://cdn.mathjax.org/mathjax/latest/MathJax.js', + mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js', config: 'TeX-AMS_HTML-full' // See http://docs.mathjax.org/en/latest/config-files.html }, diff --git a/plugin/math/math.js b/plugin/math/math.js index c0a691d399d..e3b40898118 100755 --- a/plugin/math/math.js +++ b/plugin/math/math.js @@ -7,7 +7,7 @@ var RevealMath = window.RevealMath || (function(){ var options = Reveal.getConfig().math || {}; - options.mathjax = options.mathjax || 'https://cdn.mathjax.org/mathjax/latest/MathJax.js'; + options.mathjax = options.mathjax || 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js'; options.config = options.config || 'TeX-AMS_HTML-full'; loadScript( options.mathjax + '?config=' + options.config, function() { diff --git a/test/examples/math.html b/test/examples/math.html index 1b80e034d84..d35e827772d 100644 --- a/test/examples/math.html +++ b/test/examples/math.html @@ -169,7 +169,7 @@

Maxwell’s Equations

transition: 'linear', math: { - // mathjax: 'http://cdn.mathjax.org/mathjax/latest/MathJax.js', + // mathjax: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js', config: 'TeX-AMS_HTML-full' },