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

Please add support for mhchem KaTeX extension #642

Open
saf-dmitry opened this issue Jul 25, 2024 · 1 comment
Open

Please add support for mhchem KaTeX extension #642

saf-dmitry opened this issue Jul 25, 2024 · 1 comment

Comments

@saf-dmitry
Copy link

saf-dmitry commented Jul 25, 2024

Is your feature request related to a problem? Please describe.
I very often need to add chemical reactions, like $\ce{C + O2 -> CO2}$, and quantities with units, like $\pu{1.23 kg.m^{-3}}$, to my notebooks.

Describe the solution you'd like
Please load the mhchem KaTeX extension, so it can be used in notebooks.

Describe alternatives you've considered
Since the mhchem extension for KaTeX exists and works just fine (in other environments, which autoload the mhchem extension), no other alternatives considered.

Additional context
The examples above are rendered by GitHub using the mhchem extension for MathJax.

@saf-dmitry saf-dmitry changed the title Please add support for mhchem KaTeX extension [FEATURE REQUEST] Please add support for mhchem KaTeX extension Jul 25, 2024
@mbostock
Copy link
Member

For what it’s worth, mhchem already works in Observable Framework. You can load it like so:

```js
import tex from "npm:@observablehq/tex";
import "npm:katex/contrib/mhchem/mhchem.js/+esm";
```

@mootari mootari changed the title [FEATURE REQUEST] Please add support for mhchem KaTeX extension Please add support for mhchem KaTeX extension Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants