From here.
To make Hexo be able to render the math formula written in TeX/LaTeX notation, we need to add the “hexo-filter-mathjax” plugin.
First, update the “pacakge.json” file by adding the following line in the “dependencies” section:
1 | "hexo-filter-mathjax": "^0.9.0", |
Then run “npm install” to install it.
Second, update the “_config.yaml” file to add the corresponding configuration:
1 | mathjax: |
The last step is to add the following “front-matter” line into the post which contains the math formula written in TeX/LaTeX notation:
1 | mathjax: true |
After that in the post you can write the formula like below:
1 | # https://en.wikibooks.org/wiki/LaTeX/Mathematics |
The rendered result looks like:
Done.