在 WordPress 博客的 RSS 源中启用 MathJax
MathJax 是一个非常好的 JavaScript 库,用于在 html 文件中编写 LaTeX 代码。我在 WordPress 博客中使用它,当在其实际地址中查看帖子时,一切正常。但是,数学部分不会在 Google Reader 中呈现,例如被视为 $x=\lefty*(\ b+c right)$ 。
该脚本使用 Wordpress 标头中的语句加载,但不包含在 RSS 文件中。即使包含它,Google Reader 也会禁用脚本标签。
是否有适当的方法来解决此问题,以便订阅者可以在阅读器中看到精美呈现的公式?
MathJax is a very nice javascript library to write LaTeX code within an html file. I'm using it in a Wordpress blog and everything works fine when the post is viewed in its actual address. But, the math parts are not rendered in Google Reader and seen as $x=\lefty*(\ b+c right)$ for instance.
The script is loaded with the statement in Wordpress header and it's not included in the RSS file. Even if it is included, Google Reader disables script tags.
Is there a proper way to fix this problem so that the subscribers can see the nicely rendered formulae in their readers?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以结合 MathJax 预览功能(请参阅 http://www.mathjax.org/resources/docs/?options/hub.html) 以及图像生成器 URL,如 LaTeX 相当于 Google Chart API
这将要求您开始将 LaTeX 封装在
script
标记中。例如,以下(未经测试的示例)可能有效:
要获得更多支持,您应该发布在:
https://math.stackexchange.com/
sourceforge 上的 MathJax 帮助论坛
You could combine the MathJax Preview feature (see the
preRemoveClass
option at http://www.mathjax.org/resources/docs/?options/hub.html) with image generator urls, like those detailed at LaTeX equivalent to Google Chart APIThis would require you to start encapsulating your LaTeX in
script
tags.For instance, the following (untested example) might work:
For more support you should post at:
https://math.stackexchange.com/
MathJax help forum at sourceforge