cloose / CuteMarkEd

Qt Markdown Editor
http://cloose.github.io/CuteMarkEd
Other
1.48k stars 317 forks source link

mathjax javascript url should be updated(cdn.mathjax.org is dead in April, 2017) #366

Open asmwarrior opened 6 years ago

asmwarrior commented 6 years ago

Hi, when the Math support is enabled, I see that the html has those scripts added:

</script>
<script type="text/javascript" async
  src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-MML-AM_CHTML">
</script>

The problem here is, the MathJax don't support this url links, see this page: https://docs.mathjax.org/en/latest/configuration.html#loading-mathjax-from-a-cdn

We retired our self-hosted CDN at cdn.mathjax.org in April, 2017. We recommend using cdnjs.com which uses the same provider. The use of cdn.mathjax.org was governed by its terms of service.

Thank.

BTW: any one know how to use a local(offline) MathJax.js? Thanks.

asmwarrior commented 6 years ago

It is located in hard-coded in the file: CuteMarkEd/app-static/template/htmltemplate.cpp