长安的花

当学问走过漫漫古道
凿刻入千窟,心也从愚昧中苏醒

0%

解决hexo 公式渲染失败

问题介绍

公式加了$$美元符号,但是在渲染的时候,还是显示的美元符号

问题解决方法

按照这个博主的方式解决了

https://runninggump.github.io/2018/12/05/%E6%88%90%E5%8A%9F%E8%A7%A3%E5%86%B3%E5%9C%A8hexo%E4%B8%AD%E6%97%A0%E6%B3%95%E6%98%BE%E7%A4%BA%E6%95%B0%E5%AD%A6%E5%85%AC%E5%BC%8F%E7%9A%84%E9%97%AE%E9%A2%98/

但是由于版本问题,具体操作略有不同

1
2
3
4
5
6
7
8
9
10
11
math:
# Default (true) will load mathjax / katex script on demand.
# That is it only render those page which has `mathjax: true` in Front-matter.
# If you set it to false, it will load mathjax / katex srcipt EVERY PAGE.
per_page: false

# hexo-renderer-pandoc (or hexo-renderer-kramed) required for full MathJax support.
mathjax:
enable: true
# See: https://mhchem.github.io/MathJax-mhchem/
mhchem: true

之后在

1
2
3
4
5
6
7
8
---
title: 解决hexo 公式渲染失败
date: 2021-08-9 19:59:28
categories: hexo
tags:
- hexo
- 公式渲染失败
---

不需要增加
1
mathjax: true

如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!

欢迎关注我的其它发布渠道