summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraviv <adam.aviv@gmail.com>2017-04-15 16:21:57 -0400
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2017-04-16 08:59:05 +0200
commit842a75828f5e16412fdab5180164eda27e971e0d (patch)
tree8109cf4e725875eadfe201c31889fc788b7b52f7
parent8a2ffac88ae697ddd835da1db1de03bb0162c4c0 (diff)
downloadorg-mode-842a75828f5e16412fdab5180164eda27e971e0d.tar.gz
Updating MathJax CDN links
* doc/org.texi : Change reference to "cdn.mathjax.org" to "cdnjs.com", removing comment about no longer relevant terms of service. * lisp/ox-html.el (org-html-mathjax-options) : Change link to appropriate cdnjs.com link to load MathJax. Updating MathJax CDN links to reflect cdnjs.com as cdn.mathjax.org will be disconitnued as of 30 April 2017. TINYCHANGE
-rw-r--r--doc/org.texi6
-rw-r--r--lisp/ox-html.el9
2 files changed, 4 insertions, 11 deletions
diff --git a/doc/org.texi b/doc/org.texi
index 7a051bb..ea7841e 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -11660,10 +11660,8 @@ You could use @code{http} addresses just as well.
@LaTeX{} math snippets (@pxref{@LaTeX{} fragments}) can be displayed in two
different ways on HTML pages. The default is to use
@uref{http://www.mathjax.org, MathJax} which should work out of the box with
-Org@footnote{By default Org loads MathJax from
-@uref{http://docs.mathjax.org/en/latest/start.html#using-the-mathjax-content-delivery-network-cdn,
-MathJax.org}. A link to the terms of service of the MathJax CDN can be found
-in the docstring of @code{org-html-mathjax-options}.}. Some MathJax display
+Org@footnote{By default Org loads MathJax from @uref{https://cdnjs.com, cdnjs.com} as
+recommended by @uref{http://www.mathjax.org, MathJax}.}. Some MathJax display
options can be configured via @code{org-html-mathjax-options}, or in the
buffer. For example, with the following settings,
@smallexample
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index c249d6b..224b577 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -1153,7 +1153,7 @@ See `format-time-string' for more information on its components."
;;;; Template :: Mathjax
(defcustom org-html-mathjax-options
- '((path "http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS_HTML" )
+ '((path "https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS_HTML" )
(scale "100")
(align "center")
(font "TeX")
@@ -1191,12 +1191,7 @@ You can also customize this for each buffer, using something like
For further information about MathJax options, see the MathJax documentation:
- http://docs.mathjax.org/
-
-Please note that by using the default CDN one must agree with
-MathJax CDN Terms of Service.
-
- http://www.mathjax.org/mathjax-cdn-terms-of-service.html"
+ http://docs.mathjax.org/"
:group 'org-export-html
:package-version '(Org . "8.3")
:type '(list :greedy t