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

[页面渲染] 不能渲染Latex Chemical Equation #145

Closed
e9965 opened this issue Apr 3, 2022 · 4 comments
Closed

[页面渲染] 不能渲染Latex Chemical Equation #145

e9965 opened this issue Apr 3, 2022 · 4 comments
Assignees
Labels
bug Something isn't working help wanted Extra attention is needed
Milestone

Comments

@e9965
Copy link

e9965 commented Apr 3, 2022

image
image

@tangly1024 tangly1024 added the bug Something isn't working label Apr 3, 2022
@tangly1024 tangly1024 self-assigned this Apr 3, 2022
@tangly1024
Copy link
Owner

tangly1024 commented Apr 6, 2022

这是react-notion-x的bug,渲染化学方程式时,解析格式错误。
需要在这里react-notion-x/issues/255跟进,我也将关注这个问题

@tangly1024 tangly1024 added the help wanted Extra attention is needed label Apr 6, 2022
@tangly1024
Copy link
Owner

此项目使用Katex渲染公式。正如 transitive-bullshit 所说,化学方程式(mhchem)属于扩展插件并没有默认支持。

Hmmm, it looks like \ce and other chemistry-oriented latex features may not be included in katex by default. https://github.com/KaTeX/KaTeX/blob/b1311aff1bfeebd75df9389aadfba7a4a697b203/contrib/mhchem/README.md

同时在katex的react版本中,也有用户反馈过此问题react-katex/issues/69。不过似乎没有得到解决。

现在的困难之处是,如何开启mhchem的支持。

@e9965
Copy link
Author

e9965 commented Apr 7, 2022

此项目使用Katex渲染公式。正如 transitive-bullshit 所说,化学方程式(mhchem)属于扩展插件并没有默认支持。

Hmmm, it looks like \ce and other chemistry-oriented latex features may not be included in katex by default. https://github.com/KaTeX/KaTeX/blob/b1311aff1bfeebd75df9389aadfba7a4a697b203/contrib/mhchem/README.md

同时在katex的react版本中,也有用户反馈过此问题react-katex/issues/69。不过似乎没有得到解决。

现在的困难之处是,如何开启mhchem的支持。

🙈谢谢大佬帮我问,我看看考完高考能不能研究研究一下

@tangly1024 tangly1024 changed the title 不能渲染Latex Chemical Equation [公式块]不能渲染Latex Chemical Equation Apr 11, 2022
@tangly1024 tangly1024 changed the title [公式块]不能渲染Latex Chemical Equation [页面渲染] 不能渲染Latex Chemical Equation May 25, 2022
@tangly1024 tangly1024 added this to the v3.6.0 milestone Nov 17, 2022
@tangly1024
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants