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:
Then run “npm install” to install it.
Second, update the “_config.yaml” file to add the corresponding configuration:
The last step is to add the following “front-matter” line into the post which contains the math formula written in TeX/LaTeX notation:
After that in the post you can write the formula like below:
The rendered result looks like: