安装
Windows 10系统中,需要首先从官网下载msi文件进行安装
hexo设置
更换渲染引擎
1 | npm un hexo-renderer-marked --save |
Next主题配置
在Next主题的配置文件 _config.yml中设置mathjax为true: 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18# Math Formulas Render Support
math:
# Default (true) will load mathjax / katex script on demand.
# That is it only render those page which has `mathjax: true` in Front-matter.
# If you set it to false, it will load mathjax / katex srcipt EVERY PAGE.
per_page: true
# hexo-renderer-pandoc (or hexo-renderer-kramed) required for full MathJax support.
mathjax:
enable: true
# See: https://mhchem.github.io/MathJax-mhchem/
mhchem: false
# hexo-renderer-markdown-it-plus (or hexo-renderer-markdown-it with markdown-it-katex plugin) required for full Katex support.
katex:
enable: false
# See: https://github.com/KaTeX/KaTeX/tree/master/contrib/copy-tex
copy_tex: false
文章配置
在每篇博文开头之处,添加 1
mathjax: true