mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-05 19:28:39 +00:00
* A proposal for support of mhchem * Create extension * Add index * Remove arrow function * Fix lint errors in macros.js * Remove mhchem from build * Move code from macros.js to mhchem.js * Add minified mhchem * Remove arrow head mods. Disable eslint. * Fix space handling * Update code to mhchem v3.3.0 * Tweak arrows to reduce diff * Raise \tripledash * Edit docs and webpack * Update package.json * Remove wrap. Remove manual. * Correct second brush stroke in \xrightleftarrows * Added patch file * Add import line * Add mhchem to eslint ignore
739 B
739 B
mhchem extension
This extension adds to KaTeX the \ce
and \pu
functions from the mhchem package.
Usage
This extension isn't part of core KaTeX, so the script should be separately included. Write the following line into the HTML page’s <head>
. Place it after the line that calls katex.js
.
<script src="https://cdn.jsdelivr.net/npm/katex@0.10.0/dist/contrib/mhchem.min.js"></script>
Syntax
See the mhchem Manual for a full explanation of the input syntax, with working examples. The manual also includes a demonstration box.
Browser Support
This extension has been tested on Chrome, Firefox, Opera, and Edge.