{"_id":"showdown-katex","_rev":"9-9981f8eae56fffab88ed8b93aaec3fc1","name":"showdown-katex","description":"showdown extension that adds latex and asciimath support","dist-tags":{"latest":"0.8.0","next":"0.5.0"},"versions":{"0.0.5":{"name":"showdown-katex","version":"0.0.5","description":"Katex support","main":"index.js","homepage":"https://github.com/wear/showdown-katex","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["katex","showdown"],"author":{"name":"Stephen Kong","email":"wear21@hotmail.com"},"license":"MIT","dependencies":{"showdown":"1.0.x","katex":"*"},"repository":{"type":"git","url":"git@github.com:wear/showdown-katex.git"},"gitHead":"9dbb24df6e91d79ca7e686991ae5af3ff3176b28","bugs":{"url":"https://github.com/wear/showdown-katex/issues"},"_id":"showdown-katex@0.0.5","_shasum":"fb945c962a478f8dcb2f2f603d1da16642bed1ba","_from":".","_npmVersion":"2.0.2","_nodeVersion":"0.10.29","_npmUser":{"name":"wear","email":"wear21@hotmail.com"},"dist":{"shasum":"fb945c962a478f8dcb2f2f603d1da16642bed1ba","tarball":"https://registry.npmjs.org/showdown-katex/-/showdown-katex-0.0.5.tgz","integrity":"sha512-znbmnNl8CsZlxGXeijJ+ZyMdnG7kJQIG+wo+7wZ63+78+J8dxCHoGJyt9VpOVgDGsk4N/mRsk16XlojksCR5Qw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD5IjvXuJ2iuXn95pLo1Ay+mnKuFocy4CkXtLYvTcOxJgIhALI+aMaxHwkWOGuSFLVhBeCetVP5tNFpQCxpRZwuieSM"}]},"maintainers":[{"name":"wear","email":"wear21@hotmail.com"}],"directories":{}},"0.5.0":{"name":"showdown-katex","author":{"name":"obedm503"},"homepage":"https://obedm503.github.io/showdown-katex/","description":"showdown extension that adds latex and asciimath support thru katex","keywords":["markdown","showdown","latex","asciimath","katex"],"version":"0.5.0","license":"MIT","main":"dist/showdown-katex.js","jsnext:main":"src/showdown-katex.js","unpkg":"dist/showdown-katex.js","scripts":{"clean":"rm -rf dist/","start":"npm run clean && http-server & nodemon --watch src --exec 'npm run build:umd'","build:umd":"BABEL_ENV=build rollup -c","build:umd:min":"BABEL_ENV=build rollup -c --environment MIN","build":"npm run build:umd && npm run build:umd:min","prepublishOnly":"npm run clean && npm run build","test":"BABEL_ENV=test ava ./src/*.spec.js --verbose","lint":"eslint ."},"ava":{"require":"babel-register","babel":"inherit"},"repository":{"type":"git","url":"git+https://github.com/obedm503/showdown-katex.git"},"dependencies":{"katex":"^0.10.0"},"peerDependencies":{"showdown":"^1.4.3"},"devDependencies":{"ava":"^0.22.0","babel-core":"^6.26.0","babel-eslint":"^8.0.0","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.0","babel-preset-latest":"^6.24.1","babel-register":"^6.26.0","eslint":"^4.6.1","http-server":"^0.10.0","nodemon":"^1.12.0","rollup":"^0.49.3","rollup-plugin-babel":"^3.0.2","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-inject":"^2.0.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1"},"optionalDependencies":{},"engines":{"node":"*"},"readme":"# showdown-katex\n\n> `npm install showdown-katex`\n\n[Showdown](https://github.com/showdownjs/showdown) extension to render [LaTeX](https://www.latex-project.org/) math and [AsciiMath](http://asciimath.org/) using [KaTeX](https://khan.github.io/KaTeX/);\n\nSpecial characters do not need escaping\n\n> Works well alongside [bootmark](https://obedm503.github.io/bootmark/)\n\n## Config\n\nYou can customize what gets passed to the katex renderer by passing a config object.\n\nThese are the defaults:\n\n```js\n{\n  displayMode: true,\n  throwOnError: false, // allows katex to fail silently\n  errorColor: '#ff0000',\n  delimiters: [\n    { left: \"$$\", right: \"$$\", display: true }, // katex default\n    { left: \"\\\\[\", right: \"\\\\]\", display: true }, // katex default\n    { left: \"\\\\(\", right: \"\\\\)\", display: false }, // katex default\n    { left: '~', right: '~', display: false, asciimath: true },\n    { left: '&&', right: '&&', display: true, asciimath: true },\n  ],\n}\n```\n\nExamples:\n\n```html\n<script>\n  const converter = new showdown.Converter({\n    extensions: [\n      showdownKatex({\n        // maybe you want katex to throwOnError\n        throwOnError: true,\n        // disable displayMode\n        displayMode: false,\n        // change errorColor to blue\n        errorColor: '#1500ff',\n      }),\n    ],\n  });\n  converter.makeHtml('~x=2~');\n</script>\n```\nCheck [katex for more details](https://github.com/Khan/KaTeX#user-content-rendering-options).\n\n## FOUC\n\nIf your page suffers from a \"Flash Of Unstyled Content,\"  add this to your `<body>` tag:\n\n```html\n<body  style=\"display:none;\" onload=\"$('body').show();\">\n```\nThis hides the body and shows it only when the JavaScript has loaded.\n\n## Math Example\n\nin asciimath\n\n    && x = (-b+-sqrt(b^2-4ac))/(2a) &&\n\n&& x = (-b+-sqrt(b^2-4ac))/(2a) &&\n\nin latex\n\n    $$ x=\\frac{ -b\\pm\\sqrt{ b^2-4ac } } {2a} $$\n\n$$ x=\\frac{ -b\\pm\\sqrt{ b^2-4ac } } {2a} $$\n\nThey will both render the exact same thing. If the examples don't render correctly click [here](https://obedm503.github.io/showdown-katex/).\n\n----\n","readmeFilename":"README.md","gitHead":"d5237a89c14dd39ebb810d55657b26dff355beb1","bugs":{"url":"https://github.com/obedm503/showdown-katex/issues"},"_id":"showdown-katex@0.5.0","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"obedm503","email":"obedm503@gmail.com"},"dist":{"integrity":"sha512-tcNeYZFdVqFLAlAo2+y2HopG6nsDmruaDKYQ/5VQzGW8ca/Y7CB2i1sX0UYkuI4F3kAcArYBUDMbaR+0WPd6pw==","shasum":"525886ee9b1fc5a6b08a7486706d3ab10483cf66","tarball":"https://registry.npmjs.org/showdown-katex/-/showdown-katex-0.5.0.tgz","fileCount":11,"unpackedSize":3111890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcT9jiCRA9TVsSAnZWagAA4O0P/3fMCgGTrxNmOUzZwGSt\nLprK/PWy09sF0YUKi4Q1bQkYxJ4tcm9HcHxYCQ1m6beRWfPaFJD2GY0cQnE8\nIIiO6ei7heRX9PjXpBSMl/0pmJK3shnJjj6mjd8p5pQitEKqsSOdR6c+CSHD\nfoBzjnskHJ36Bj3aiEDi0DeT79fqU5vg1f2rltifcDmOLioRhnPH9Q2xL5ks\ndsb/sJp3g2bRI3QxJOuT2EGPgc9cDgW6E4To7Z0vzEW/GwS8ESCFMn1zx772\nC5Dj39ugi7Lmh2Qz3K/E+C7kooc/Oby55AHfOxBfak9eRt4c9sp/XLpuxawZ\njAGsidvzgE5wDr4sggrPheHfnMDF9NIXzrMw+uhLIEO6rLX+u2c4fYl1Uei8\n6CG42rYzLv/N13E22jkIf5o85qRAaggXI2ePzg+//EhRlccKKRl5jItAY2oM\n42kan04IzF6j/Vt0WF9kaUKijy8SVfncxcb4Mn7rRkhjS0B/MelC1bFdIBBw\nO918unnmqjpN8D6HqQ7gwQ5yXUAfhTa1HQQnR+wCWlzHRIdqj7OuDpyX4Lmd\nEs7cEM6fndDjx/JcdSj1230Cn7ypOu+sIabD+sPt3WYDmOHu8yaNWg8XTZLe\nTDawmUKG7Z8iT/Kg4lAqpyspm6kKE8qwXFLQE9Xu5HP6DWBfizGb7M5vwq2j\nBlU+\r\n=NBMl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCDab7Tib/M2tMjPJHAaXA+fR+dtg8gwmvxwSvvbSQE+wIhAPwkip68wLu4SivwmM8p7Ymeq+iT5VUNriGT/c9FbtK3"}]},"maintainers":[{"email":"obedm503@gmail.com","name":"obedm503"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/showdown-katex_0.5.0_1548736737727_0.44117323634402106"},"_hasShrinkwrap":false},"0.5.1":{"name":"showdown-katex","author":{"name":"obedm503"},"homepage":"https://obedm503.github.io/showdown-katex/","description":"showdown extension that adds latex and asciimath support thru katex","keywords":["markdown","showdown","latex","asciimath","katex"],"version":"0.5.1","license":"MIT","main":"dist/showdown-katex.js","jsnext:main":"src/showdown-katex.js","unpkg":"dist/showdown-katex.js","scripts":{"clean":"rm -rf dist/","start":"npm run clean && http-server & nodemon --watch src --exec 'npm run build:umd'","build:umd":"BABEL_ENV=build rollup -c","build:umd:min":"BABEL_ENV=build rollup -c --environment MIN","build":"npm run build:umd && npm run build:umd:min","prepublishOnly":"npm run clean && npm run build","test":"BABEL_ENV=test ava ./src/*.spec.js --verbose","lint":"eslint ."},"ava":{"require":"babel-register","babel":"inherit"},"repository":{"type":"git","url":"git+https://github.com/obedm503/showdown-katex.git"},"dependencies":{"katex":"^0.10.0"},"peerDependencies":{"showdown":"^1.4.3"},"devDependencies":{"ava":"^0.22.0","babel-core":"^6.26.0","babel-eslint":"^8.0.0","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.0","babel-preset-latest":"^6.24.1","babel-register":"^6.26.0","eslint":"^4.6.1","http-server":"^0.10.0","nodemon":"^1.12.0","rollup":"^0.49.3","rollup-plugin-babel":"^3.0.2","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-inject":"^2.0.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1"},"optionalDependencies":{},"engines":{"node":"*"},"gitHead":"d5237a89c14dd39ebb810d55657b26dff355beb1","bugs":{"url":"https://github.com/obedm503/showdown-katex/issues"},"_id":"showdown-katex@0.5.1","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"obedm503","email":"obedm503@gmail.com"},"dist":{"integrity":"sha512-8SX0kgmY9KQz9+i5PfhH6Yh5i7rX/tVGtHwpLPtNbIy56fEl7LcaPyG6Oyx6VNhwMoPu3YMyv8ycpnKRKpFt2w==","shasum":"8ac369fc7e1eacf235f9da959e7ef0f6abba0acd","tarball":"https://registry.npmjs.org/showdown-katex/-/showdown-katex-0.5.1.tgz","fileCount":11,"unpackedSize":3111890,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcT9m9CRA9TVsSAnZWagAAJIEP/RZal9RnnFA2iEiQOvKe\nRJKtQwtHGNVlFlQAtM9SLByP8vCURuLB1XkBVDWwTkfxB+xg7CRCTeavO4zN\nuhCC2/+ODAMFaGJd3o/XoQP+LdG03/pRa1xjMohzm/laInZ5tRxb+OzkJr3X\nZwocrLXcFK3wkIdjDVcZMrHhemVDJ/F9jSSlU2FbqJqN8KWAadcOmwst20aP\ntsNFHzF2Cr0TzjOdvysdI77wQ1kZCBtyAVYIzVOC1Xj6mPsWGk5WSnsy/ShQ\nBtFEG1UHkrQkSK7o5Rw7nv6QnHl4mZkpak4fFJPQ19deqEOa5rOSWKsmOaBP\n2ioVAqCe4mbfhzCwUGr3Fh6Ig/Zx2nAmTMSJgWbwrC9V7iFCNYwBW4+JCdmR\nqu2CSWLGtccJXuGAlSqOqyvU1YMaxc+EQ2nE9Oi+RAa5hu80BfOBN/P06ssf\nvbMCTmlmxtxcrcSvVN2LCRjnUqAdDo7zHaJz/timcP48LbsotOBC7JSdrvnb\nZgkJTUuNAoj9vFiLvoQ2Ty4IVNNkeFfa6ZhPMrSOgMyOlYl/+jMiQHlSctVD\n4gkr0/lhou/798+qfCvA1kJ9gDmPqcoabRaLkmdk57WVpIdRicIh3kihBRB7\nFHNr415mORvM6wtEYLX73Yqf7ZQ9+xFqQ52LZy+Nl3ozqbltpgmmuVmcccmO\naHbW\r\n=dM1X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCex4cp2Htj0O7kusfhLMReuUlAvfnRGydrdTTb88t27QIgfmj+4IcDhi6KnZsODeX6NPu7k4Z3Rk4KXBq24YYkdDU="}]},"maintainers":[{"email":"obedm503@gmail.com","name":"obedm503"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/showdown-katex_0.5.1_1548736957203_0.6720199864168603"},"_hasShrinkwrap":false},"0.6.0":{"name":"showdown-katex","author":{"name":"obedm503"},"homepage":"https://obedm503.github.io/showdown-katex/","description":"showdown extension that adds latex and asciimath support","keywords":["markdown","showdown","latex","asciimath","katex"],"version":"0.6.0","license":"MIT","main":"dist/showdown-katex.js","jsnext:main":"src/showdown-katex.js","unpkg":"dist/showdown-katex.js","scripts":{"clean":"rm -rf dist/","start":"npm run clean && http-server & nodemon --watch src --exec 'npm run build:umd'","build:umd":"BABEL_ENV=build rollup -c","build:umd:min":"BABEL_ENV=build rollup -c --environment MIN","build":"npm run build:umd && npm run build:umd:min","prepublishOnly":"npm run clean && npm run build","test":"BABEL_ENV=test ava ./src/*.spec.js --verbose"},"ava":{"require":"babel-register","babel":"inherit"},"repository":{"type":"git","url":"git+https://github.com/obedm503/showdown-katex.git"},"dependencies":{"katex":"^0.10.0"},"peerDependencies":{"showdown":"^1.4.3"},"devDependencies":{"ava":"^0.22.0","babel-core":"^6.26.0","babel-plugin-external-helpers":"^6.22.0","babel-plugin-transform-object-rest-spread":"^6.26.0","babel-preset-env":"^1.6.0","babel-preset-latest":"^6.24.1","babel-register":"^6.26.0","http-server":"^0.10.0","nodemon":"^1.12.0","rollup":"^0.49.3","rollup-plugin-babel":"^3.0.2","rollup-plugin-commonjs":"^8.2.6","rollup-plugin-inject":"^2.0.0","rollup-plugin-node-resolve":"^3.0.0","rollup-plugin-uglify":"^2.0.1"},"optionalDependencies":{},"engines":{"node":"*"},"gitHead":"85c6dd23ff3aeef6270de8a7a09794d54282fe14","bugs":{"url":"https://github.com/obedm503/showdown-katex/issues"},"_id":"showdown-katex@0.6.0","_npmVersion":"6.4.1","_nodeVersion":"10.10.0","_npmUser":{"name":"obedm503","email":"obedm503@gmail.com"},"dist":{"integrity":"sha512-eEOipJjqMxRJ+e69WlA7XENhFZzKhNl12csey0iLd4QbLzGF61+FBxNPhEZFz9wICYTJNfyqNgLSqmm8Uj0fGA==","shasum":"25aab6aa31f60c0ff8688c1ed8a708ea1823a874","tarball":"https://registry.npmjs.org/showdown-katex/-/showdown-katex-0.6.0.tgz","fileCount":11,"unpackedSize":3145205,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJczRmECRA9TVsSAnZWagAAzUkP/2qsvf4WwdTHc3IAvxhC\nOdfXtawKCPJd0RDiTha3xclD81vrikl86QaGTgULCTNdOFYnbCgaxdNjBJ2R\nqskd4HCuds5NlPcmRFYT0c+6GNrKC8eX7N/HDf0QGqN4alYjupWHeOgx5Xnv\nR486ukOOVotH+2c4WQqVRbCiL48sO0dazPrLz3TsyDs0nMvozc7cBMWZ1ozq\nKxg2HRNjSZrG81EhysrZ1Vgj3dOShDuamEOsCgIZ3MuyNFvcD1g2c2U+VN7M\nzYn3uswWKA//7qQazwNNdFFpMTzZviNy7XbfXUI0lvQ+N9H0+iomtvxOcIYx\nqwGb3S8SBuLKGBc+W76T8V7PqIRrUVBt0Bn2CKvtFI6cJzDzC9TDL6HXgf8v\nT3RsGiPO5vj1CSjBNOjWFeTZUrVjhBYrlCPO2Wu44jubVNPbEkMT2n5pv65J\nP/aP8GMz4Yg2W3EPaEQEOiDjJx4UG1gNEnR9tE4pNHYsFpj1wV5/GNdR/GdO\nHkKOH4/cH37POLt0a1ijDRFAqPNR6amqGmEXfs+bQKtB751xkzJuEPo5hcu3\nFbTtB9z5SQPfq9tDE1s8whi21IJU9E6BHr8QRas5zU4naD9brla0+CaOQFNm\nnld1dcIUSDgscnynab6NLgvY92nTd/0QxeeyucKCNzSWFrBsBMwwzOlJ/HR/\nAEnD\r\n=+vBB\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIjqmolvtVzWPhY8TZxQ4JQ+FHT2NfA6Bz/WkNH+Dl6AIhANXkbLrKSv8KbclAoEm5z/jwpePm2fsI/KvvPSHu0G4F"}]},"maintainers":[{"email":"obedm503@gmail.com","name":"obedm503"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/showdown-katex_0.6.0_1556945283472_0.926481894194322"},"_hasShrinkwrap":false},"0.8.0":{"name":"showdown-katex","author":{"name":"obedm503"},"homepage":"https://obedm503.github.io/showdown-katex/","description":"showdown extension that adds latex and asciimath support","keywords":["markdown","showdown","latex","asciimath","katex"],"version":"0.8.0","license":"MIT","browser":"dist/showdown-katex.js","main":"lib/showdown-katex.js","jsnext:main":"src/showdown-katex.js","unpkg":"dist/showdown-katex.js","scripts":{"dev":"nps dev","build":"nps build","prepublishOnly":"nps build && nps deploy","test":"nps build.cjs && BABEL_ENV=test ava ./src/*.spec.js --verbose"},"ava":{"require":"@babel/register"},"repository":{"type":"git","url":"git+https://github.com/obedm503/showdown-katex.git"},"dependencies":{"jsdom":"^16.2.1","katex":"^0.11.1"},"peerDependencies":{"showdown":"^1.9.1"},"devDependencies":{"@ava/babel-preset-stage-4":"^4.0.0","@ava/babel-preset-transform-test-files":"^6.0.0","@babel/core":"^7.7.2","@babel/plugin-proposal-object-rest-spread":"^7.6.2","@babel/preset-env":"^7.7.1","@babel/register":"^7.7.0","ava":"^3.5.0","ejs":"^3.0.1","fs-extra":"^8.1.0","gh-pages":"^2.1.1","http-server":"^0.12.1","nodemon":"^2.0.2","nps":"^5.9.8","nps-utils":"^1.7.0","rollup":"^1.26.4","rollup-plugin-babel":"^4.3.2","rollup-plugin-commonjs":"^10.1.0","rollup-plugin-inject":"^3.0.2","rollup-plugin-license":"^0.13.0","rollup-plugin-node-resolve":"^5.2.0","rollup-plugin-replace":"^2.2.0","rollup-plugin-terser":"^5.1.2","showdown":"^1.9.1"},"optionalDependencies":{},"gitHead":"eaf3647d734265a271ce3906e7101e0bbd29e8d8","bugs":{"url":"https://github.com/obedm503/showdown-katex/issues"},"_id":"showdown-katex@0.8.0","_nodeVersion":"12.16.1","_npmVersion":"6.13.4","dist":{"integrity":"sha512-LPoX5InPRZ15nNRZ79yToh8UqmZvQDeQLsAlT11rvi437ZMhpJa9KorBmikHybrsyi4/MdIo/zZsrMnU+z07LQ==","shasum":"9350637259227218ac370b2638be217500386141","tarball":"https://registry.npmjs.org/showdown-katex/-/showdown-katex-0.8.0.tgz","fileCount":18,"unpackedSize":6500269,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeaslRCRA9TVsSAnZWagAA3XoP/1fQvwcbbgXh0UnAoToS\nrl8fkVaJlbsV1f63TK9t/vSZCOTROhSPJTrybTE6wSAJ9uM4E2FLPGRZdvBs\n+oZDyddwZXY6zc1FIIVOr2aXsfcW5gyKxVKEMQ3ci3xf0512s4mv7NvrQm9Y\nvB8E64g/Dz6DxvFdHhhT7Xb0ggDiWfBeinGb1Lw69KaQzm1aLDnd93ZB2G8f\nbmL9oVzhetxk5NCv7GV2QVwtywH2ig0c/1EqiN4aP/uK9vbxv2zkDtiQDls/\n3FVAvKnWkxeoIq7uZrzV1M9NXeSkIekTy6AbdxcbF+BUfeeT9RPPuC4xpceP\nr2CuoG3Ezp0Srl6HHJo2d5qCFl+o/n1DhPrE28eppy4D2vwCVsLIJYTpLOR6\nF+4ICLpznRNEC0Hz4GUs5P8Xz/7DcvuRWXGgI8kvLnFFJRKbDXhkNrsH9nBc\nY2PfkquwjKuRzTXOHLH8v2QPTyAK1vS71g2ux+w4bC/Yh4WoKEYsngow25Zl\nF1iqyEDCutSX3U8HjVdzwpeTvGcjLPOK/0zv+zanLPF/uY2EytaavhzlucZq\ntvx2SLBEAZ/n8OQg6dn7HHHWj/lXFVOCZmDFD1uft5f8V74zPEfL1AChRJj/\nKvUqmG0zSqhoVGTysv2ZENDrx8zH/urrvpS0fy79pz3kSgXT7GrVaU0jS2ae\n4kvr\r\n=7+m7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmJ2oSJyV3YkZr9HfF3s7Bi+tWUia4L9AAWGImRMFwuAIhAOGXA0LyORqcePFMRSZEDBsxNa56LnX9ZT4poBQG63Y4"}]},"maintainers":[{"email":"obedm503@gmail.com","name":"obedm503"}],"_npmUser":{"name":"obedm503","email":"obedm503@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/showdown-katex_0.8.0_1584056657413_0.36123073436688813"},"_hasShrinkwrap":false}},"readme":"# showdown-katex\n\n> `npm install showdown-katex`\n\n[Showdown](https://github.com/showdownjs/showdown) extension to render [LaTeX](https://www.latex-project.org/) math and [AsciiMath](http://asciimath.org/) using [KaTeX](https://khan.github.io/KaTeX/);\n\nSpecial characters do not need escaping\n\n> Works well alongside [bootmark](https://obedm503.github.io/bootmark/)\n\n## Config\n\nYou can customize what gets passed to the katex renderer by passing a config object.\n\nThese are the defaults:\n\n```js\n{\n  displayMode: true,\n  throwOnError: false, // allows katex to fail silently\n  errorColor: '#ff0000',\n  delimiters: [\n    { left: \"$$\", right: \"$$\", display: false },\n    { left: '~', right: '~', display: false, asciimath: true },\n  ],\n}\n```\n\nExamples:\n\n```html\n<script>\n  const converter = new showdown.Converter({\n    extensions: [\n      showdownKatex({\n        // maybe you want katex to throwOnError\n        throwOnError: true,\n        // disable displayMode\n        displayMode: false,\n        // change errorColor to blue\n        errorColor: '#1500ff',\n      }),\n    ],\n  });\n  converter.makeHtml('~x=2~');\n</script>\n```\nCheck [katex for more details](https://github.com/Khan/KaTeX#user-content-rendering-options).\n\n### Default Delimiters\n\n| Format    | Left | Right | Display mode |\n| --------- | ---- | ----- | ------------ |\n| Latex     | `$$` | `$$`  | `false`      |\n| Asciimath | `~`  | `~`   | `false`      |\n\nTo define custom delimiters simply define a `delimiters` property in the config as an array of objects. Each object MUST have a `left` (`string`) property with the left delimiter, and a `right` (`string`) property with the right delimiter. The oject may also have a `display` (`boolean`) property if the delimiter should use display mode instead of inline mode, and an `asciimath` (`boolean`) id the delimiter is Asciimath instead of Latex.\n\nCustom delimiters won't disable the defaults, so you can use both custom and default delimiters.\n\n```js\nconst converter = new showdown.Converter({\n  extensions: [\n    showdownKatex({\n      delimiters: [{ left: '( ͡° ͜ʖ ͡°)', right: '( ͡° ͜ʖ ͡°)', asciimath: true }],\n    }),\n  ],\n});\nconverter.makeHtml(\n  'some text here, ( ͡° ͜ʖ ͡°) E=mc^2 ( ͡° ͜ʖ ͡°), you can still use ~ E=Mc^2 ~',\n);\n```\n\n\n## FOUC\n\nIf your page suffers from a \"Flash Of Unstyled Content,\"  add this to your `<body>` tag:\n\n```html\n<body style=\"display:none;\" onload=\"document.body.style.display='block'\">\n```\nThis hides the body and shows it only when the JavaScript has loaded.\n\n## Math Example\n\n    ```asciimath\n    x = (-b +- sqrt(b^2-4ac)) / (2a)\n    ```\n\n```asciimath\nx = (-b +- sqrt(b^2-4ac)) / (2a)\n```\n\n    ```latex\n    x=\\frac{ -b\\pm\\sqrt{ b^2-4ac } } {2a}\n    ```\n\n```latex\nx=\\frac{ -b\\pm\\sqrt{ b^2-4ac } } {2a}\n```\n\nThey will both render the exact same thing. If the examples don't render correctly click [here](https://obedm503.github.io/showdown-katex/).\n\n----\n","maintainers":[{"email":"obedm503@gmail.com","name":"obedm503"}],"time":{"modified":"2022-06-26T19:08:14.558Z","created":"2015-06-22T14:42:16.042Z","0.0.5":"2015-06-22T14:42:16.042Z","0.5.0":"2019-01-29T04:38:57.883Z","0.5.1":"2019-01-29T04:42:37.377Z","0.6.0":"2019-05-04T04:48:03.674Z","0.8.0":"2020-03-12T23:44:17.558Z"},"homepage":"https://obedm503.github.io/showdown-katex/","keywords":["markdown","showdown","latex","asciimath","katex"],"repository":{"type":"git","url":"git+https://github.com/obedm503/showdown-katex.git"},"author":{"name":"obedm503"},"bugs":{"url":"https://github.com/obedm503/showdown-katex/issues"},"license":"MIT","readmeFilename":"README.md"}