emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Mathjax CDN to shutdown April 30th 2017
@ 2017-04-12 13:41 Adam Aviv
  2017-04-12 13:57 ` Adonay Felipe Nogueira
  2017-04-15 16:22 ` Nicolas Goaziou
  0 siblings, 2 replies; 6+ messages in thread
From: Adam Aviv @ 2017-04-12 13:41 UTC (permalink / raw)
  To: Emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 1065 bytes --]

Hi all,

I saw this blogpost recently about cdn.mathjax.org will be shutdown on
April 30th 2017.

https://www.mathjax.org/cdn-shutting-down/

There's a replacement to use cloudflair hosting instead

https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?...

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.

On another note, the default option of using orgmode.org's hosting of
mathjax.sh should be updated to support HTTPS because most browsers block
scripts loaded under http if the page is loaded under https. Or, that
default should also change to the cloudflare cdn if it fits within the
terms of service. Perhaps that should be a discussion for another thread,
though.

-aja

-- 
Adam J. Aviv, PhD
*Asst. Professor*
*Computer Science*
*U.S. Naval Academy*
*(410) 293- 6655*

[-- Attachment #1.2: Type: text/html, Size: 1889 bytes --]

[-- Attachment #2: 0001-Fixing-link-to-mathjax-cdn-as-cdn.mathjax.org-is-shu.patch --]
[-- Type: application/octet-stream, Size: 857 bytes --]

From 80e5b49bd1666418a58124e74d7098fd4d5fcae5 Mon Sep 17 00:00:00 2001
From: Adam Aviv <aviv@usna.edu>
Date: Wed, 12 Apr 2017 09:16:31 -0400
Subject: [PATCH] Fixing link to mathjax cdn as cdn.mathjax.org is shutting
 down Apirl 30, 2017

---
 lisp/ox-html.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 251e1be..70d3bde 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")
-- 
2.10.1 (Apple Git-78)


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: Mathjax CDN to shutdown April 30th 2017
  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
  1 sibling, 1 reply; 6+ messages in thread
From: Adonay Felipe Nogueira @ 2017-04-12 13:57 UTC (permalink / raw)
  To: emacs-orgmode

I would personally try to avoid CloudFlare, because it currently forces
the site visitor to run non-(free/libre) software (automatically through
JavaScript).

And even if it's prooven to be free/libre, it currently doesn't tell
this to the user/visitor in a clear way (next to the place where the
script is, with a license, and address of complete corresponding source
in case it's currently obfuscated/minified).
-- 
- [[https://libreplanet.org/wiki/User:Adfeno]]
- Palestrante e consultor sobre /software/ livre (não confundir com
  gratis).
- "WhatsApp"? Ele não é livre, por isso não uso. Iguais a ele prefiro
  Ring, ou Tox. Quer outras formas de contato? Adicione o vCard que
  está no endereço acima aos teus contatos.
- Pretende me enviar arquivos .doc, .ppt, .cdr, ou .mp3? OK, eu
  aceito, mas não repasso. Entrego apenas em formatos favoráveis ao
  /software/ livre. Favor entrar em contato em caso de dúvida.
- "People said I should accept the world. Bullshit! I don't accept the
  world."
                                                 --- Richard Stallman

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Mathjax CDN to shutdown April 30th 2017
  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:22 ` Nicolas Goaziou
  2017-04-15 20:41   ` Adam Aviv
  1 sibling, 1 reply; 6+ messages in thread
From: Nicolas Goaziou @ 2017-04-15 16:22 UTC (permalink / raw)
  To: Adam Aviv; +Cc: Emacs-orgmode

Hello,

Adam Aviv <aviv@usna.edu> writes:

> I saw this blogpost recently about cdn.mathjax.org will be shutdown on
> April 30th 2017.
>
> https://www.mathjax.org/cdn-shutting-down/
>
> There's a replacement to use cloudflair hosting instead
>
> https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?...

Thank you for the heads up.

> 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?

> On another note, the default option of using orgmode.org's hosting of
> mathjax.sh should be updated to support HTTPS because most browsers block
> scripts loaded under http if the page is loaded under https. Or, that
> default should also change to the cloudflare cdn if it fits within the
> terms of service. Perhaps that should be a discussion for another thread,
> though.
>
> -aja
>
> -- 
> Adam J. Aviv, PhD
> *Asst. Professor*
> *Computer Science*
> *U.S. Naval Academy*
> *(410) 293- 6655*
> From 80e5b49bd1666418a58124e74d7098fd4d5fcae5 Mon Sep 17 00:00:00 2001
> From: Adam Aviv <aviv@usna.edu>
> Date: Wed, 12 Apr 2017 09:16:31 -0400
> Subject: [PATCH] Fixing link to mathjax cdn as cdn.mathjax.org is shutting
>  down Apirl 30, 2017
>
> ---
>  lisp/ox-html.el | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/lisp/ox-html.el b/lisp/ox-html.el
> index 251e1be..70d3bde 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")

Have you signed FSF papers? Otherwise, you need to include "TINYCHANGE"
at the end of your commit message before I can apply it.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Mathjax CDN to shutdown April 30th 2017
  2017-04-12 13:57 ` Adonay Felipe Nogueira
@ 2017-04-15 16:37   ` Nicolas Goaziou
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2017-04-15 16:37 UTC (permalink / raw)
  To: Adonay Felipe Nogueira; +Cc: emacs-orgmode

Hello,

Adonay Felipe Nogueira <adfeno@openmailbox.org> writes:

> I would personally try to avoid CloudFlare, because it currently forces
> the site visitor to run non-(free/libre) software (automatically through
> JavaScript).
>
> And even if it's prooven to be free/libre, it currently doesn't tell
> this to the user/visitor in a clear way (next to the place where the
> script is, with a license, and address of complete corresponding source
> in case it's currently obfuscated/minified).

AFAIU, it is only a default option. You can use something else.

Would you want to suggest a better option as the default value?

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Mathjax CDN to shutdown April 30th 2017
  2017-04-15 16:22 ` Nicolas Goaziou
@ 2017-04-15 20:41   ` Adam Aviv
  2017-04-16  7:01     ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Adam Aviv @ 2017-04-15 20:41 UTC (permalink / raw)
  To: Nicolas Goaziou; +Cc: Emacs-orgmode


[-- 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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: Mathjax CDN to shutdown April 30th 2017
  2017-04-15 20:41   ` Adam Aviv
@ 2017-04-16  7:01     ` Nicolas Goaziou
  0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2017-04-16  7:01 UTC (permalink / raw)
  To: Adam Aviv; +Cc: Emacs-orgmode

Hello,

Adam Aviv <aviv@usna.edu> writes:

> I've included both changes, to doc and the the html export in the attached
> patch, now with properly commit message including the TINYCHANGE.

Applied. Thank you.

Regards,

-- 
Nicolas Goaziou                                                0x80A93738

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2017-04-16  7:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2017-04-16  7:01     ` Nicolas Goaziou

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).