Merge pull request #133 from abeaumont/mathjax-cdn-update

Mathjax cdn update
This commit is contained in:
Javier Olaechea 2017-04-10 10:52:10 -05:00 committed by GitHub
commit 7d87d483a0
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ post with `format: cl-who` and the plugin will do the rest.
posts. Default value is `nil`. posts. Default value is `nil`.
- `:location` specifies the location of the `MathJax.js` file. The - `:location` specifies the location of the `MathJax.js` file. The
default value is `"http://cdn.mathjax.org/mathjax/latest/MathJax.js"`. default value is `"https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"`.
This is useful if you have a local copy of MathJax and want to use that This is useful if you have a local copy of MathJax and want to use that
version. version.

View file

@ -23,7 +23,7 @@
(some #'mathjax-p (index-content index))))) (some #'mathjax-p (index-content index)))))
(defun enable (&key force config (preset "TeX-AMS-MML_HTMLorMML") (defun enable (&key force config (preset "TeX-AMS-MML_HTMLorMML")
(location "http://cdn.mathjax.org/mathjax/latest/MathJax.js")) (location "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"))
(flet ((inject-p (x) (flet ((inject-p (x)
(when (or force (mathjax-p x)) (when (or force (mathjax-p x))
(format nil *mathjax-header* config location preset)))) (format nil *mathjax-header* config location preset))))