From: Adam Aviv <aviv@usna.edu>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Cc: Emacs-orgmode@gnu.org
Subject: Re: Mathjax CDN to shutdown April 30th 2017
Date: Sat, 15 Apr 2017 16:41:52 -0400 [thread overview]
Message-ID: <CAJV1Hcw+zWRNY0N+7qEFzi6bRmcBYRo_UAPzjtB6_kvWStDVEQ@mail.gmail.com> (raw)
In-Reply-To: <87inm5hc8z.fsf@nicolasgoaziou.fr>
[-- Attachment #1.1: Type: text/plain, Size: 1241 bytes --]
On Sat, Apr 15, 2017 at 12:22 PM, Nicolas Goaziou <mail@nicolasgoaziou.fr>
wrote:
> > Is there a plan to move the default org-mode mathjax header link over to
> > this by 30 April? It's a one line change in ox-htm.el for mathjax
> options.
> > I've attached that patch for convenience. However, after a bit of
> > grepping, there should be some changes to the documentation which refers
> to
> > using the mathjax CDN and stuff.
>
> Would you want to provide a patch for that?
>
[...]
>
> Have you signed FSF papers? Otherwise, you need to include "TINYCHANGE"
> at the end of your commit message before I can apply it.
>
I've included both changes, to doc and the the html export in the attached
patch, now with properly commit message including the TINYCHANGE.
I would like to also figure out why (still can't track it down right now)
if you don't do the settings via (org-html-mathjax-options) you get
orgmode.org's hosting of mathjax.js via HTTP. It would seem wiser to either
host this under HTTPS so that the loading of mixed-content is not blocked
when using HTTPS or change that to also using the cdn.
-adam
--
Adam J. Aviv, PhD
*Asst. Professor*
*Computer Science*
*U.S. Naval Academy*
*(410) 293- 6655 <(410)%20293-6655>*
[-- Attachment #1.2: Type: text/html, Size: 2718 bytes --]
[-- Attachment #2: 0001-Updating-mathjax-CDN-links-to-reflect-cdnjs.com-as-c.patch --]
[-- Type: application/octet-stream, Size: 2627 bytes --]
From c438edc6acae7770bb13e9593e87aad7b555a86a Mon Sep 17 00:00:00 2001
From: aviv <adam.aviv@gmail.com>
Date: Sat, 15 Apr 2017 16:21:57 -0400
Subject: [PATCH] Updating mathjax CDN links to reflect cdnjs.com as
cdn.mathjax.org will be disconitnued as of 30 April 2017.
* doc/org.texi : change reference to cdn.mathjax.org to reference 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
TINYCHANGE
---
doc/org.texi | 6 ++----
lisp/ox-html.el | 8 ++------
2 files changed, 4 insertions(+), 10 deletions(-)
diff --git a/doc/org.texi b/doc/org.texi
index 52ec506b0..a5bece6b6 100644
--- a/doc/org.texi
+++ b/doc/org.texi
@@ -11641,10 +11641,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
+recommend 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 251e1be50..c223809aa 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -1160,7 +1160,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")
@@ -1199,11 +1199,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"
+"
:group 'org-export-html
:package-version '(Org . "8.3")
:type '(list :greedy t
--
2.11.0
next prev parent reply other threads:[~2017-04-15 20:42 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-12 13:41 Mathjax CDN to shutdown April 30th 2017 Adam Aviv
2017-04-12 13:57 ` Adonay Felipe Nogueira
2017-04-15 16:37 ` Nicolas Goaziou
2017-04-15 16:22 ` Nicolas Goaziou
2017-04-15 20:41 ` Adam Aviv [this message]
2017-04-16 7:01 ` Nicolas Goaziou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAJV1Hcw+zWRNY0N+7qEFzi6bRmcBYRo_UAPzjtB6_kvWStDVEQ@mail.gmail.com \
--to=aviv@usna.edu \
--cc=Emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).