Hexo can automatically include Mathjax and almost correctly interpret tex commands to math formulas. The author is a VSCoder, and prefer built-in Markdown-viewer with extension “Markdown+Math” (ID: goessner.mdmath). Therefore the only purpose is to let both Hexo and VSCode display a common file well.
Installation
Required packages:
hexo-math
hexo-renderer-kramed (or hexo-renderer-pandoc)
1 2 3 4 5 6 7 8
#install hexo-math npm install --save hexo-math # check installed renderers, at the root of Hexo grep "hexo-renderer-" ./package.json # uninstall hexo-renderer-marked if exists npm uninstall --save hexo-renderer-marked; # install hexo-renderer-kramed if inexists npm install --save hexo-renderer-kramed;