Add mhchem extension (#1436)

* 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
This commit is contained in:
Ron Kok
2018-11-24 15:52:25 -08:00
committed by Kevin Barabash
parent 3dfd17d9b4
commit 64745b5c8a
9 changed files with 1962 additions and 6 deletions

View File

@@ -325,7 +325,7 @@ s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
M100 241v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,
// rightarrowabovebar is mostly from glyph U+2192, KaTeX Main
rightarrowabovebar: `M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32