Closed
Description
MathJax 3.x 发布已颇有时日,而 MathJax 2.x 也已经更新到了 2.7.8
MathJax 在这两代重要的版本里,纠正了一些陈旧的错误,引入了很多新的特性。
遗憾的是,这两个版本,butterfly 目前的版本都无法简单实现更新引入。
虽然 MathJax 对 web 解析引入的方式非常简单。
Using MathJax components from a CDN on the web
If you are loading MathJax from a CDN into a web page, there is no
need to install anything. Simply use ascript
tag that loads
MathJax from the CDN. E.g.,<script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"> </script>
See the
documentation
for more details.
我尝试着更换新的 CDN,但是收到一系列的报错。
看上去,似乎是 butterfly 中的 「mathjax.pug」引起的。
尝试着将它的内容改为上面 Mathjax 介绍的形式:
在编译出的 html 文件中已经有了:
<script type="text/javascript" id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js">
但是加载是不成功的。
也许是 hexo 在解析 markdown 时,有其它的步骤被干扰了?
不太清楚……
请求支持 MathJax 3.x 或最新的稳定版 2.7.8
在试错中,发现可能与 CDN 的接入处理有关系。
cloudflare——它上面的 js 只到 2.7.7 ,换入别的 CDN 就会失效。