2.0.0 • Published 3 years ago
hexo-renderer-mathjax2 v2.0.0
MathJax Renderer Plugin for Hexo
Clone from phoenixcw and update.
Add support of MathJax for Hexo.
INSTALL
$ npm install hexo-renderer-mathjax2 --save
CONFIG
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'
Sample
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: