docs: better explanation of when to use mhchem extension (#2862)

* mhchem extension, README, minor addition

* Add comma

Co-authored-by: Erik Demaine <edemaine@mit.edu>
This commit is contained in:
deining
2021-04-03 23:02:55 +02:00
committed by GitHub
parent 388030c482
commit 4f22f8ce3e

View File

@@ -4,7 +4,7 @@ This extension adds to KaTeX the `\ce` and `\pu` functions from the [mhchem](htt
### 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`.
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`, and if you make use of the [auto-render](https://katex.org/docs/autorender.html) extension, place it *before* the line that calls `auto-render.js`.
```html
<script defer src="https://cdn.jsdelivr.net/npm/katex@0.13.0/dist/contrib/mhchem.min.js" integrity="sha384-PACpdmyZW2PMgcXY2jXmtQ38v2NDic4DNreFSAENncz6TZHcwdgAakjPiHYEAOuv" crossorigin="anonymous"></script>