部署到Google App Engine后,Mathjax无法在Chrome上呈现

时间:2013-07-11 05:41:37

标签: google-app-engine google-chrome mathjax

我正在Google App Engine上创建一个网站,并且遇到Mathjax无法在Chrome上运行的问题。

在本地计算机上测试网站时没有问题,但在我发布到GAE之后,Mathjax只停止为Chrome工作。

Here is the website

我将Mathjax CDN链接和配置放在body标签的底部,看起来像

<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js" type="text/javascript">
    MathJax.Hub.Config({
        extensions: ["tex2jax.js","TeX/AmsMath.js","TeX/AMSsymbols.js"],
        jax: ["input/TeX","output/HTML-CSS"],
        tex2jax: {
            inlineMath: [ ['$','$'], ["\\(","\\)"] ],
            displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
            processEscapes: true,
        },
        "HTML-CSS": { availableFonts: ["TeX"] }
    });
</script>
<script src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML""></script>
<script src="/static/js/jquery.js"></script>
<script src="/static/js/childsplayexp.js"></script>


</body>

我试过将它移到不同的地方但没有任何改变。我现在不知道。

很抱歉没有提供信息,但我不知道自己发生了什么事,请随时发表猜测,这对我来说确实很有价值。

1 个答案:

答案 0 :(得分:3)

您的信息页有两个问题。

更新此内容changed in 2014。 SSL现在可以在cdn.mathjax.org上运行,并且机架地址已经停用。

更新(2017年)。 cdn.mathjax.org的副本将停用。查看mathjax.org/cdn-shutting-down了解迁移提示。

  • 一个较小的问题是MathJax linline配置块的脚本类型错误 - 它应该是text/x-mathjax-config。再次,请参阅the documentation了解更多详情。