{"name":"mhchemparser","version":"4.2.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","types":"./dist/mhchemParser.d.ts","gitHead":"d617140400289f1a859ef11879de524b3b858e12","_id":"mhchemparser@4.2.0","_nodeVersion":"18.14.1","_npmVersion":"9.3.1","dist":{"integrity":"sha512-sTDTSaGwYBOnEfFz6nId4F7gvRukxzYxqxo42T1zHP4WmwBmX7is920H15pPsgODdIFWfQsqvbzi9t2nBVXgpA==","shasum":"724f0b8372912d078cc08a964b0c74f1be98a110","tarball":"http://registry-npm.ywwl.com/mhchemparser/download/mhchemparser-4.2.0.tgz","fileCount":13,"unpackedSize":276568,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE/iT3mt+HkOpe1cuktLjgXjpCF14+jWzn4GH3gnfaF3AiEA38mJofFUYSkAJCVfHA5KrTOAVT4BChdy4zi1qtk+Q3g="}],"size":44402,"noattachment":false,"key":"/mhchemparser/-/mhchemparser-4.2.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.2.0_1684788707725_0.7992614694349596"},"_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":1684788707919,"_cnpm_publish_time":1684788707919,"dist-tags":{"latest":"4.2.1"}}