NotionNext icon indicating copy to clipboard operation
NotionNext copied to clipboard

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

Open e9965 opened this issue 3 years ago • 3 comments

image image

e9965 avatar Apr 03 '22 03:04 e9965

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

tangly1024 avatar Apr 06 '22 06:04 tangly1024

此项目使用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 avatar Apr 07 '22 02:04 tangly1024

此项目使用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 avatar Apr 07 '22 03:04 e9965

功能已更新 https://github.com/tangly1024/NotionNext/releases/tag/v3.6.0

tangly1024 avatar Nov 19 '22 06:11 tangly1024