Deploy MathJax on your Github page
Updated:
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
1 | $ hexo clean |
and then install the install new renderer by bash command
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
1 | $ npm install hexo-tag-table-bootstrap --save |
and remember to include:
1 | {% table %} |
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.