数学公式显示有问题怎么办
行内公式$xx$和行间公式$$xx$$都显示不出来
您可以试试安装使用 hexo-filter-mathjax 这个插件
我使用的是V3
执行
pnpm add hexo-filter-mathjax
之后,再添加如下的配置直接就白板了:
mathjax:
tags: none # or 'ams' or 'all'
single_dollars: true # enable single dollar signs as in-line math delimiters
cjk_width: 0.9 # relative CJK char width
normal_width: 0.6 # relative normal (monospace) width
append_css: true # add CSS to pages rendered by MathJax
every_page: false # if true, every page will be rendered by MathJax regardless the `mathjax` setting in Front-matter
packages: # extra packages to load
extension_options: {}
# you can put your extension options here
# see http://docs.mathjax.org/en/latest/options/input/tex.html#tex-extension-options for more detail
您好,可以麻烦您运行一下这个项目看看是否正常吗 https://github.com/Candinya/kratos-rebirth-support-with-mathjax 如果依然出现了错误问题的话,想请问一下您的控制台是否有出现报错日志,以及您的运行环境,非常感谢您
https://github.com/Candinya/kratos-rebirth-support-with-mathjax 这个可以正常运行,但是有些公式还是显示不出来,不知道为啥,是hexo-filter-mathjax本身的问题吗?
有些公式还是显示不出来,不知道为啥,是hexo-filter-mathjax本身的问题吗?
看起来是的,有可能是公式的支持程度不太一样?主要是可以试试能否对比检查主题的配置导致首页加载不出来的情况
hexo-renderer-marked支持渲染的公式比较少,可以换成hexo-renderer-pandoc