hexo-filter-mathjax
hexo-filter-mathjax copied to clipboard
文章目录未渲染数学公式
Issue Checklist
- [x] I am using NexT version 8.0 or later.
- [x] I have already read the Troubleshooting page of Hexo and Troubleshooting page of NexT.
- [x] I have already searched for current issues, which does not help me.
Expected behavior
文章目录含有数学公式时,应该进行渲染
Actual behavior
目录未渲染数学公式
- Links to demo site with this issue:http://blog.arg.pub/2022/01/19/%E7%AE%97%E6%B3%95%E5%A4%8D%E6%9D%82%E5%BA%A6/
Thanks for opening this issue, maintainers will get back to you as soon as possible!
另外建议你贴一下相关的配置段
另外建议你贴一下相关的配置段
数学公式我配置的是服务端渲染,渲染引擎用的pandoc _config.yml文件:
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
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
_config.next.yml文件:
math:
# Default (false) 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 true, it will load mathjax / katex script EVERY PAGE.
every_page: false
mathjax:
enable: false
# Available values: none | ams | all
tags: none
katex:
enable: false
# See: https://github.com/KaTeX/KaTeX/tree/master/contrib/copy-tex
copy_tex: false
这个应该是 hexo-filter-mathjax 的问题 暂时难以解决,需要改 Hexo 的 toc 生成机制