hexo-filter-mathjax icon indicating copy to clipboard operation
hexo-filter-mathjax copied to clipboard

文章目录未渲染数学公式

Open thomas10011 opened this issue 2 years ago • 4 comments

Issue Checklist


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/

thomas10011 avatar Jan 16 '22 11:01 thomas10011

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

welcome[bot] avatar Jan 16 '22 11:01 welcome[bot]

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

ljcbaby avatar Jan 16 '22 12:01 ljcbaby

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

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

thomas10011 avatar Jan 16 '22 12:01 thomas10011

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

stevenjoezhang avatar Jan 16 '22 16:01 stevenjoezhang