hexo math formula display problem

solution

Use hexo-math

Install:

$ npm i hexo-math --save

Requires Hexo 5 version or above

Use KaTeX

{% katex '{options}' %}
content
{% endkatex %}

use mathjax

{% mathjax '{options}' %}
content
{% endmathjax %}

For details, see: hexo-math

Use hexo-filter-mathjax

With this, you don’t need to write {%%} to use mathjax, so it’s easy to see in typora. There is just a small problem. He uses the \\ symbol as an escape character, and he needs to type a few more when writing. It's a matter of conflict.

Install:

$ npm install hexo-filter-mathjax
$ hexo clean

See more: hexo-filter-mathjax

Guess you like

Origin blog.csdn.net/qq_36571422/article/details/120452165
Recommended