Clone from phoenixcw and update.
Add support of MathJax for Hexo.
$ npm install hexo-renderer-mathjax2 --save
If you want to customize the mathjax js src, Edit _config.yml
,replace cdn url like below.:
mathjax:
cdn: 'https://cdn.bootcss.com/mathjax/2.7.1/MathJax.js'
version: "v3"
If you want to use mathjax 3.0+, add version config value equals "v3" ,else empty this value.
Notice: Cdn config value and version config value need to match each other.
Write the following latex code:
$$
\frac{\partial u}{\partial t} = h^2 \left( \frac{\partial^2 u}{\partial x^2} + \frac{\partial^2 u}{\partial y^2} + \frac{\partial^2 u}{\partial z^2}\right)
$$
Then you will get: