Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
3 tasks done
hrtan99 opened this issue Jan 16, 2022 · 4 comments
Open
3 tasks done

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

hrtan99 opened this issue Jan 16, 2022 · 4 comments

Comments

@hrtan99
Copy link

hrtan99 commented Jan 16, 2022

Issue Checklist


Expected behavior

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

Actual behavior

目录未渲染数学公式

@welcome
Copy link

welcome bot commented Jan 16, 2022

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

@ljcbaby
Copy link
Member

ljcbaby commented Jan 16, 2022

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

@hrtan99
Copy link
Author

hrtan99 commented Jan 16, 2022

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

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

stevenjoezhang commented Jan 16, 2022

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

@stevenjoezhang stevenjoezhang transferred this issue from next-theme/hexo-theme-next Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants