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

mathjax行内公式得到渲染,但是行间公式没有 #79

Open
ctbfl opened this issue Apr 17, 2022 · 1 comment
Open

mathjax行内公式得到渲染,但是行间公式没有 #79

ctbfl opened this issue Apr 17, 2022 · 1 comment

Comments

@ctbfl
Copy link

ctbfl commented Apr 17, 2022

尝试使用 hexo-renderer-mathjax & hexo-renderer-kramed 渲染数学公式

行内公式(使用$和$作为标志)得到了正常的渲染,显现为
<mjx-container class="MathJax" jax="SVG">此处省略</mjx-container>

但是行间公式(使用$$和$$作为标志)没有得到渲染,在html中是一个script标签,如
<script type="math/tex; mode=display">S=\sqrt{P^2+Q^2}</script>

如此的情况在Jason Hall's blog - 电路分析中的单位中可以看到,在“随便来点公式”标题后本应有行间公式,但并未得到显示。

查阅hexo-renderer-kramed项目的readme得知,其作用正是把公式转化为script标签,但是真正渲染需要在theme中添加js
(https://github.com/sun11/hexo-renderer-kramed/blob/master/README.md)

请问这个js应该在Claudia主题文件夹的哪里添加呀?或者是哪里的配置需要修改呢?
谢谢!

@rockcor
Copy link

rockcor commented Feb 13, 2023

用it吧,这个主题其实没有数学公式支持
hexo-renderer-markdown-it-plus+katex

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

2 participants