Inlcude support for mhchem in the rehype-katex module
abeeonthemoon opened this issue · 2 comments
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and couldn’t find anything (or linked relevant results below)
Problem
Hello,
I would like to request to incorporate mhchem into the rehype-katex module. Mhchem is a chemistry notation parser that is usually used on top of other latex systems such as katex or MathJax.
Katex doesn't provide functionality for mhchem out of the box as such it needs to be imported separately.
Below is the documentation that explains how to load it through CDN:
https://github.com/KaTeX/KaTeX/blob/master/contrib/mhchem/README.md
I was wondering if I can get any insight into how we can integrate mhchem into rehype-katex.
Solution
In the KaTex documentation, they do have an in integration for mhchem in their dist folder as shown here: https://github.com/KaTeX/KaTeX/blob/master/contrib/mhchem/mhchem.js
There is another issue that would relate to rehype-katex / javascript modules about how one can integrate this library:
KaTeX/KaTeX#1995
Alternatives
An alternative to this feature request would be to use MathJax. MathJax V3 now comes with support for mhchem straight from the box. A downside of it is that it doesn't provide the same types of styling as provided for Katex.
Lastly please let me know if there is any other information that I should provide to make my request clearer. Thank you!
Hi! This was closed. Team: If this was fixed, please add phase/solved
. Otherwise, please add one of the no/*
labels.
Hi team! Could you describe why this has been marked as wontfix?
Thanks,
— bb