hexo-renderer-mathjax2

2.0.0 • Public • Published

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'
  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.

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

Package Sidebar

Install

npm i hexo-renderer-mathjax2

Weekly Downloads

1

Version

2.0.0

License

MIT

Unpacked Size

361 kB

Total Files

9

Last publish

Collaborators

  • mybrc91