Contents

I have been struggling rendering math equations my github pages for a while, and finally got a good solution from a note posted on the discussion here in zhongpu’s page. I decided to share it here, to remind myself as well as helping others experience same problem.

Depend on which theme you choose the developer may use different math renderer. Here I recommend $mathjax$ which is compatible with the typora markdown editor.

Basically, you have to first clear you hexo public folder

Copy Code


1
$ hexo clean

and then install the install new renderer by bash command

Copy Code


1
$ npm install hexo-render-mathjax --save

Run as root/administrator when necessary

Advance features in typora (i.e. table) can also be rendered. Add plug-in

Copy Code


1
$ npm install hexo-tag-table-bootstrap --save

and remember to include:

Copy Code


1
2
3
4
5
{% table %}

... body of the table

{% endtable %}

at the begining and end of your table.

You can add more features like flowchat and pandoc features in your page. Welcome new discussion if you find more exciting features.