aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-04-07 09:33:05 +0200
committerGitHub <noreply@github.com>2017-04-07 09:33:05 +0200
commit1babc8d31c4964407c8cda1270c195866cac5429 (patch)
tree372aa84ecdb565afac93739502ba88454a160ca4
parentc3e96f1f0e37b9f5d8052bcee6db100606c3e458 (diff)
parent9495b64d2c10977748eb9b4ecb93489902ea2967 (diff)
downloadfreenode-live-2017-presentation-1babc8d31c4964407c8cda1270c195866cac5429.tar
freenode-live-2017-presentation-1babc8d31c4964407c8cda1270c195866cac5429.tar.gz
Merge pull request #1866 from christianp/mathjax-cdn
replace cdn.mathjax.org with cdnjs
-rw-r--r--README.md2
-rwxr-xr-xplugin/math/math.js2
-rw-r--r--test/examples/math.html2
3 files changed, 3 insertions, 3 deletions
diff --git a/README.md b/README.md
index 8e31935..2991ed1 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 c0a691d..e3b4089 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 1b80e03..d35e827 100644
--- a/test/examples/math.html
+++ b/test/examples/math.html
@@ -169,7 +169,7 @@
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'
},