iblh / hexo-theme-material

Material Design theme for hexo.
https://iblh.github.io/material-demo/
GNU General Public License v3.0
4.03k stars 564 forks source link

怎么使用 MathJax?How to use MathJax? #604

Open skyArony opened 6 years ago

skyArony commented 6 years ago

I certify that I have first consulted (check all with "x")

我确认我已经查看了 (使用 "x" 选择)


I'm submitting a (check one with "x")

我正在申请 (使用 "x" 选择)

MathJax 如何在本主题中使用,我在CDN中看到了MathJax的引入,但是我尝试了"$E=mc^2$",并不能在主题中被渲染出来。

LOOKCC commented 6 years ago

我安装了mathjax插件,配饰了站点文件,在主题配置文件加入了cdn,但是并没有渲染出来公式。

Helianus commented 6 years ago

我也没有。 image

Helianus commented 6 years ago

@skyArony @LOOKCC `我的问题已经修复了,需要在主题文件夹内的配置文件里找到mathjax,然后填入https://cdn.bootcss.com/mathjax/2.7.0/MathJax.js。之后在用到mathjax的.md文档的front-matter里填入mathjax: true即可(小写)。 image

LOOKCC commented 6 years ago

@Helianus 我在我的网站F12,在js控制台发现是我找的cdn不能用,我去了mathjax的官网手册,这里: http://docs.mathjax.org/en/latest/start.html 按照推荐的换了cdn,就可以用了。谢了

Helianus commented 6 years ago

在config.yml的最底下,设置连接就行。

On Wed, Apr 11, 2018 at 10:08 PM, Jiang Zhentao notifications@github.com wrote:

@Helianus https://github.com/Helianus 为什么我没有主题文件夹内的配置文件里找到mathjax选项呢 ?我的版本是1.4.0。难道要装什么插件吗?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/viosey/hexo-theme-material/issues/604#issuecomment-380662315, or mute the thread https://github.com/notifications/unsubscribe-auth/Ab0kwyMoOZfdH7atokkqurSFooJyDF41ks5tnsUWgaJpZM4R29VD .

ghost commented 6 years ago

@Helianus 谢谢你。我的问题已经得到解决,是主题版本过低的问题。

MakerGYT commented 4 years ago

试试markdown-it-latex2img