jtebert / jekyll-polymer

A material theme for Jekyll built with Polymer
https://jtebert.github.io/jekyll-polymer/
MIT License
67 stars 18 forks source link

MathJax Usage #13

Open samcarecho opened 6 years ago

samcarecho commented 6 years ago

The original code has a call to the MathJax CDN. It was shutdown. https://www.mathjax.org/cdn-shutting-down/

What is it used for? Can we replace it for another library?

jtebert commented 6 years ago

MathJax is used for displaying equations (written in LaTeX format). MathJax is still in use, but they are no longer self-hosting a CDN. It's an easy update, though -- just replace the script source to cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.1/MathJax.js?...

samcarecho commented 6 years ago

What if we make the source available as a part of the jekyll-polymer project, therefore removing the dependency on cdnjs?


(Update) I just checked and the source is available on GitHub. https://github.com/mathjax/MathJax

Would it be ok to have it as a bower dependency, instead of using cdnjs?

jtebert commented 6 years ago

Yeah, I was going to suggest adding it as a locally installed dependency (bower/node/etc) ,rather than directly including the source directly. Definitely a preferable method to cdnjs if setup already requires Bower intsallations.