next-theme / hexo-filter-mathjax

💯 Server side MathJax renderer plugin for Hexo.
https://www.npmjs.com/package/hexo-filter-mathjax
MIT License
105 stars 6 forks source link

文章目录未渲染数学公式 #41

Open hrtan99 opened 2 years ago

hrtan99 commented 2 years ago

Issue Checklist


Expected behavior

文章目录含有数学公式时,应该进行渲染

Actual behavior

目录未渲染数学公式

welcome[bot] commented 2 years ago

Thanks for opening this issue, maintainers will get back to you as soon as possible!

ljcbaby commented 2 years ago

补充截图 另外建议你贴一下相关的配置段

hrtan99 commented 2 years ago

补充截图 另外建议你贴一下相关的配置段

数学公式我配置的是服务端渲染,渲染引擎用的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
stevenjoezhang commented 2 years ago

这个应该是 hexo-filter-mathjax 的问题 暂时难以解决,需要改 Hexo 的 toc 生成机制