-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
mhchem doesn't seem to work with rehype-katex #97
Comments
See: #81 (comment). |
This comment has been minimized.
This comment has been minimized.
Hi! Thanks for taking the time to contribute! Because we treat issues as our backlog, we close duplicates to focus our work and not have to touch the same chunk of code for the same reason multiple times. This is also why we may mark something as duplicate that isn’t an exact duplicate but is closely related. Thanks, |
Hi team! It seems this post is a duplicate, but hasn’t been marked as such. Please post a comment w/ Thanks, |
Duplicate of #34 |
Initial checklist
Affected packages and versions
latest
Link to runnable example
No response
Steps to reproduce
Node version : v21.5.0
NPM version : 10.2.4
PNPM version : 8.13.1
I'm using the
rehype-katex
plugin inreact-markdown
in a Nextjs14 app, and while KaTeX seem to work and displays maths equations and symbols with little to no issues, i can't say the same for chimical reactions, even the KaTeX package imports the mhchem module and declares the macros properly, i can't seem to get it to work in my app, in which i call the plugin like this :Expected behavior
The chemical reaction equation should be properly formated and show this :
Actual behavior
Instead, nothing is happening, it's style displayed like this :
\ce{Hg^2+ ->[I-] HgI2 ->[I-] [Hg^{II}I4]^2-}
Runtime
Other (please specify in steps to reproduce)
Package manager
Other (please specify in steps to reproduce)
OS
Linux
Build and bundle tools
Next.js
The text was updated successfully, but these errors were encountered: