{"name":"mhchemparser","version":"4.0.0","description":"Parser to convert mhchem syntax to LaTeX syntax, for downstream inclusion in MathJax, KaTeX and similar projects.","keywords":["mhchem","MathJax","LaTeX","chemistry"],"homepage":"https://github.com/mhchem/mhchemParser","bugs":{"url":"https://github.com/mhchem/mhchemParser/issues"},"repository":{"type":"git","url":"git+https://github.com/mhchem/mhchemParser.git"},"license":"Apache-2.0","author":{"name":"Martin Hensel"},"main":"dist/mhchemParser.js","gitHead":"9fd3f1da07038124c6a1992a3245064024c1c858","_id":"mhchemparser@4.0.0","_nodeVersion":"12.16.3","_npmVersion":"6.14.8","dist":{"integrity":"sha512-/jvXBJOl9kFWjWMMT2SuZ0w3HjIWomXzWuLUfAb2pWmnJ0zDh2F1CH9FnR6q5VuyAymeLg2MJGwGuDRdJrVLgA==","shasum":"8acd52012099fc4b2afd1d397a7b132abe49f704","tarball":"http://registry-npm.ywwl.com/mhchemparser/download/mhchemparser-4.0.0.tgz","fileCount":9,"unpackedSize":179219,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJggIvxCRA9TVsSAnZWagAA5dwP/ixLJI5oWyxPaA0VBpCI\nOTTVKkyJtmB0JLLzexjBSu27jNtfyvlaN08+7fohJRHS+pUL2PLjQiu6K9Tq\nTO1nXB1mYKqMe3/PKPIoAcerTfm8N1FaUHUjCtXkKsJ+CNZ73NQyY01ThY1D\nP71fFCoOcqojKVlftu4zhHGz57EQGzNTYu4mcLxA66C4qCe5f4NN3unvNdMS\n4S16PGxT3QYkUbfH8rJVjOgOn9vgM3hBrDw7puZe47X9jnzcfuRf//KkiOmA\njWIGs1nl0MBt9KL4RP4KwHM7BJJno2UmcfOJ7FSToRjEkM1LEt7wxjHnr5CZ\nh/LmGeW8fYHfPDoVLHLy8ZDamPIO/xyjMxzNxYuRHlKYe2UTMNIGc4ETeuOP\nGsl+u7Zs/Aqz+DXF1G5DFHWRzHSq5RZcQ26z/N+zLKEA8yu2Sa1++P7BmtK7\nsqaxeZzQURjKnrYkdwqq+4J3dOAKgc7Bh63ImMPJInyWIyLQXsQo2jf95lsd\nVybFV6sj+7MZPhuoQr7s1SNOHyN5b/Jn9ivup3WkDm/EsDJcCia2RIuIXaGC\ncxZd8K/6bLfCIM6esbQGF4Lpe1QM7pb7SG6e87zKtJWQzQkl+mgG3x/2OmIb\n/4Ib93uHvXjTe33Q9LyBOyRBQe9NrGkvdSgmpoTYH9alpbOWU2OWJ6X2GNW+\nYkAm\r\n=5jPs\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHM/zh2tWGYhEIld53VKGh8VPxIsUBTQYzBIZNaiZ0cdAiEAzERGvzexFW7ReWVNTnlaBU7v6NHVOeg9niOeOWb284c="}],"size":33792,"noattachment":false,"key":"/mhchemparser/-/mhchemparser-4.0.0.tgz"},"_npmUser":{"name":"mhchem","email":"noreply-npm@MartinHensel.de"},"directories":{},"maintainers":[{"name":"mhchem","email":"noreply-npm@MartinHensel.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/mhchemparser_4.0.0_1619037169539_0.30924182474700124"},"_hasShrinkwrap":false,"readme":"# mhchem Parser\n\nmhchem is an input syntax for typesetting chemical equations and physical units.\n\nThis is the parser to convert mhchem syntax to LaTeX syntax, for downstream inclusion in [MathJax](https://mathjax.org), [KaTeX](https://katex.org) and similar projects.\n\n\n## Usage\n\nUsers of MathJax and KaTex can write\n\n    \\ce{CO2 + C -> 2 CO}\n    \\pu{123 kJ*mol-1}\n\nFor a hundred more features and how to configure MathJax or KaTeX, see\n[the manual](https://mhchem.github.io/MathJax-mhchem/).\n\n\n## Usage for Downstream Software\n\nFor \"translating\" the `\\ce` syntax, make a call like\n\n    mhchemParser.toTex(\"CO2 + C -> 2 CO\", \"ce\");\n\nThis will return\n\n    \"{\\mathrm{CO}{\\vphantom{A}}_{\\smash[t]{2}} {}+{} \\mathrm{C} {}\\mathrel{\\longrightarrow}{} 2\\,\\mathrm{CO}}\"\n\nFor the `\\pu` command, call\n\n    mhchemParser.toTex(\"123 kJ*mol-1\", \"pu\");\n\nYou could also insert a TeX string. All instances of `\\ce` and `\\pu` will be replaced in the returned value. This might make integration easier, because the mhchem parser does not need to be called from the TeX parser.\n\n    mhchemParser.toTex(\"m_{\\\\ce{H2O}}\", \"tex\");\n","publish_time":1619037169668,"_cnpm_publish_time":1619037169668,"dist-tags":{"latest":"4.2.1"}}