Hexo blog support mathematical formula

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 trueyou 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

s i n x + c O s x sinx + cosx

lg 3 \ Lg3
x 31 + y 2 x ^ {31} + y ^ 2

Published 59 original articles · won praise 5 · Views 5064

Guess you like

Origin blog.csdn.net/qq_38496329/article/details/104065659