Skip to content
MathJax Renderer Plugin for Hexo
Branch: master
Clone or download
Pull request Compare This branch is 5 commits ahead of phoenixcw:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
index.js
mathjax.html
package.json
sample.png

README.md

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:

sample

You can’t perform that action at this time.