typora_plugin icon indicating copy to clipboard operation
typora_plugin copied to clipboard

markmap 思维导图里latex化学公式显示错误

Open nordenecke opened this issue 8 months ago • 1 comments

markmap在使用KaTeX为公式渲染时,使用化学公式命令“\ce”会报错?

当我在md文件中输入

$\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}$ 时,预览输出为:

ParseError: KaTeX parse error: Undefined control sequence: \ce at position 1: \̲c̲e̲{Hg^2+ ->[I-] H…

上述公式在typora自身的编辑器中显示正常,无错误,只是在插件渲染时出现失败。

nordenecke avatar Apr 26 '25 15:04 nordenecke

markmap 使用的 [email protected] 没有 mhchem 包,应该是显示不了的。

我明天看看有没有可能把 Typora(使用的是 Mathjax) 的 mhchem 集成到 markmap 的 katex 中。不过我觉得大概率不行。

obgnail avatar Apr 26 '25 16:04 obgnail

试了好久,不太行。我放弃了。此 issue 关闭,抱歉。

obgnail avatar May 08 '25 08:05 obgnail

没关系,费心了,谢谢。发自我的手机-------- 原始邮件 --------发件人: null @.>日期: 2025年5月8日周四 16:16收件人: obgnail/typora_plugin @.>抄送: nordenecke @.>, Mention @.>主 题: Re: [obgnail/typora_plugin] markmap 思维导图里latex化学公式显示错误 (Issue #982)obgnail left a comment (obgnail/typora_plugin#982) 试了好久,不太行。我放弃了。此 issue 关闭,抱歉。

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: @.***>

nordenecke avatar May 08 '25 08:05 nordenecke