Skip to content

Commit

Permalink
Merge pull request hakimel#1866 from christianp/mathjax-cdn
Browse files Browse the repository at this point in the history
replace cdn.mathjax.org with cdnjs
  • Loading branch information
hakimel authored Apr 7, 2017
2 parents 63c3c98 + 5f02b96 commit 73d895f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
},

Expand Down
2 changes: 1 addition & 1 deletion plugin/math/math.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion test/examples/math.html
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ <h3>Maxwell&#8217;s Equations</h3>
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'
},

Expand Down

0 comments on commit 73d895f

Please sign in to comment.