phoenixcw / hexo-renderer-mathjax

MathJax Renderer Plugin for Hexo
MIT License
36 stars 14 forks source link

Allow HTTPS secure protocol for MathJax CDN #4

Closed mmizutani closed 5 years ago

mmizutani commented 8 years ago

Currently, hexo-renderer-mathjax plugin generates only a insecure (http, not https) link to the MathJax CDN. This causes an issue for Hexo-based static web sites using the https protocol. Major web browsers nowadays emit security warning to viewers if such non-https content links are found on https domain sites.

MathJax official documentation says, "The MathJax CDN can be accessed via https. We advise to always use https." Making the CDN url start with // instead of the usual http:// allows deployment web servers to automatically switch to either http or https connection when connecting to the MathJax CDN based on the connection protocol type of the hosting sites.