Hexo blog support mathjax
Installation renderer
hexo default renderer is marked, it does not support mathjax. kramed is modified based on the marked, supporting mathjax. node_modules hexo in your project directory can be found in the corresponding renderer folder. Kramed installed with the following command in your project directory.
npm uninstall hexo-renderer-marked --save
npm install hexo-renderer-kramed --save
Modify the configuration file
To the theme configuration file _config.yml
, find mathjax
, and modify it as true
you can
mathjax:
enable: true
Article rendering label
To speed up the rendering speed, renderers will have mathjax in the tag: true article using use mathjax rendering.
title: 燃料消耗问题
date: 2020-01-21 17:55:00
categories: 算法
comments: true
mathjax: true
Try
Then you can try it