{"_id":"@abreto/markdown-it-katex","_rev":"2-74280333a8395ca0f3039525db6e2c5c","name":"@abreto/markdown-it-katex","dist-tags":{"latest":"3.2.0"},"versions":{"3.1.0":{"name":"@abreto/markdown-it-katex","version":"3.1.0","description":"Fast math support for markdown-it with KaTeX","main":"index.js","scripts":{"watch":"watchify browser.js -o bundle.js -v","test":"node test/all.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/Abreto/markdown-it-katex.git"},"keywords":["markdown","KaTeX","math","LaTeX","markdown-it-plugin","markdown-it"],"author":{"name":"Abreto Fu"},"license":"MIT","dependencies":{"katex":"^0.10.0"},"devDependencies":{"markdown-it":"^8.4.1","markdown-it-testgen":"^0.1.4","tape":"^4.9.0"},"gitHead":"ee55c5eac5c4939318db7aea0cc428207bc95ab8","bugs":{"url":"https://github.com/Abreto/markdown-it-katex/issues"},"homepage":"https://github.com/Abreto/markdown-it-katex#readme","_id":"@abreto/markdown-it-katex@3.1.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-MrJc91Hg/AwTjCfqRGPtuiwA2Ce4cajlwS5TQ5dzHIYkGREWB+j+jSRtNUNsBQvaHO5lyHKeHUhs6jW5guPnjQ==","shasum":"2fff897ce66954334f630575992fabf692a0264f","tarball":"https://registry.npmjs.org/@abreto/markdown-it-katex/-/markdown-it-katex-3.1.0.tgz","fileCount":14,"unpackedSize":19217,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd28u7CRA9TVsSAnZWagAAbYwP/RcWMBkRXy2G2NYAVG0c\ni/SqQcLVQKmQ1IOe9rBOWAgbhSBYxXTFKibW5ba8yK7RYdk7FWoRBgHwRFEV\n1M8ie6RwxY6+f0mHI0J6lnOvLGimonNUuDQlxqXqyxNuCyB9S/ASiuTndNSj\nSVX0FutBcNko5CVkSgxGoin56e/islRjxPsszWaa3NMBd8vtQRTGDxOewMdF\nZyWeXo9Q09ziLoOrm0Ai8ej8ga4tLs9SAbs1G1BCXbxGARkWTSSRG/n/YzlR\nmo7rb+b+tbR1+EOBtt4ckE2lRLC4//ByeMrWW8b4XR/4pSFuO0UkCS5jKkvU\nk/MewuhGZTo39rVkM02W3jqJ1vwVTmHJpWYDLKqFp0TLFDm9KVKlb5PnmudM\nKJiOGM91CyfWLPOSzwQhAOSSLoUHCTVW7vhV+qWFvt8G4d5I+XxpZOtPjWiN\nvWdZCUyFNded1dlLJLYlF7qS87zeWibtukYvlpmpb47ZXrgBJEo5vE+YK1qQ\nOM8VxgpwjK7SjAR79qTncM54yKVSMclyrAnkehYr5aUk/ne/jiHnzYIou58v\nqE7N3gPKPXcLEzduCFVJex9duY2j71TN4E1kqhWt7/zwW2t7m7Mu6+GK+Pnv\ne5SBJ3b6xe50yiRaDPwed5B0AWgnfOCEDfuIjeAKQabIQYElV6baMrVPKoWW\nkllL\r\n=EgNW\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDTEjeWahQOgfqmLyZ/V8ZxcVWbkGLpVzFq34EEY9aRnQIgbmPORTJPhg+AlgVyiwtRgNlA771SG7txCOXcwdVIHB0="}]},"maintainers":[{"name":"abreto","email":"m@abreto.net"}],"_npmUser":{"name":"abreto","email":"m@abreto.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-katex_3.1.0_1574685626963_0.45025341791195084"},"_hasShrinkwrap":false},"3.2.0":{"name":"@abreto/markdown-it-katex","version":"3.2.0","description":"Fast math support for markdown-it with KaTeX","main":"index.js","scripts":{"watch":"watchify browser.js -o bundle.js -v","test":"node test/all.js"},"repository":{"type":"git","url":"git+ssh://git@github.com/Abreto/markdown-it-katex.git"},"keywords":["markdown","KaTeX","math","LaTeX","markdown-it-plugin","markdown-it"],"author":{"name":"Abreto Fu"},"license":"MIT","dependencies":{"katex":"^0.11.1"},"devDependencies":{"markdown-it":"^8.4.1","markdown-it-testgen":"^0.1.4","tape":"^4.9.0"},"gitHead":"2b03478cfd08a008c70cef65ce43a963ac5e9ca7","bugs":{"url":"https://github.com/Abreto/markdown-it-katex/issues"},"homepage":"https://github.com/Abreto/markdown-it-katex#readme","_id":"@abreto/markdown-it-katex@3.2.0","_nodeVersion":"12.13.1","_npmVersion":"6.12.1","dist":{"integrity":"sha512-9F5hos2zrwrQrgjj8h8PZFDfqI8s4/Fdaf5H1fBFXROlB0oVUfMn3DjFdQPAPgYLNjOjV2r13LwK4vL05w6rbQ==","shasum":"db210d933294a816d729a65a3a3821821a87ed0c","tarball":"https://registry.npmjs.org/@abreto/markdown-it-katex/-/markdown-it-katex-3.2.0.tgz","fileCount":9,"unpackedSize":19066,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd29ZFCRA9TVsSAnZWagAAQrwP/Rok9RUQ4VTZgO9PkUu/\nqGm/2mrBV/jAjEyovhqg1QQKBBN9Fj7ySJrWmIJAiDof0qcYD06M3F/AbjLE\nAscuIbnBC/pf/qIMXqY5ICOPeYyFZ3M/9Fwflv46kF0IRT1Bz5qaGmouC16V\n33iZdvAtjRUpe6OrhJkMtZVmzqpaoRdDS8VpF16+HO74q0WZAILBLfps7GNO\nkGJHkOJ+2q8b4q83YYPaSa5Iovh4kf0pPUJl8funN9sCXzgtF1duoETSNahC\nV+s/q5le0qTJhG7Rnx2W1RPp56aiLEs26HPlHsIDOgLEaUxUh28SxB16ZC9y\n7ZoFZNBmaknZ2L6igBZIj2IVSGPLnunlm71PzKqpstunywAzzRqSoic0oiEq\ns2HBdbX6FHaRd9gUh7TI3z1ltHr8pDwzd+wZq84jNmtemtUIyeQYvaUb16zx\n6GzDeCerV/klsqHxTDhtvlpNjDJ8L/0vxU/5/N1YR6iaABOCwAR0B2duZzPV\n6Fdp4IugyiPU3ZplRXw+GZC5CARLb5Kfej1C2Lx6D2v4umyhDw/hinqot6r1\n+1SBdlyIvxoAMdD4XcWFiEd2ajWWw1zm2Tp9EQ7HpZs6yjrrIqeh7iyrXyAm\njrh3KqyP+6FtzK38ImsY/EFyV0dlyM2590KI1LfSKr3+SdvXGQlpINeF8+gp\nq8G3\r\n=v8vZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD+ZR711aG+Z2xa+KK1lBfKUuJTwHz6v1P4VQ8PxhOS+AIgXRz2T8VOsWR/202Eglamq80uU+6rh9mE8w0jrIfJshA="}]},"maintainers":[{"name":"abreto","email":"m@abreto.net"}],"_npmUser":{"name":"abreto","email":"m@abreto.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-katex_3.2.0_1574688324847_0.42319988645075557"},"_hasShrinkwrap":false}},"time":{"created":"2019-11-25T12:40:25.486Z","3.1.0":"2019-11-25T12:40:27.108Z","modified":"2022-04-04T11:01:45.631Z","3.2.0":"2019-11-25T13:25:24.946Z"},"maintainers":[{"name":"abreto","email":"m@abreto.net"}],"description":"Fast math support for markdown-it with KaTeX","homepage":"https://github.com/Abreto/markdown-it-katex#readme","keywords":["markdown","KaTeX","math","LaTeX","markdown-it-plugin","markdown-it"],"repository":{"type":"git","url":"git+ssh://git@github.com/Abreto/markdown-it-katex.git"},"author":{"name":"Abreto Fu"},"bugs":{"url":"https://github.com/Abreto/markdown-it-katex/issues"},"license":"MIT","readme":"# markdown-it-katex\n\nAdd Math to your Markdown\n\n[KaTeX](https://github.com/Khan/KaTeX) is a faster alternative to MathJax. This plugin makes it easy to support in your markdown.\n\nNeed convincing?\n\n* Check out the comparative benchmark: [KaTeX vs MathJax](https://jsperf.com/katex-vs-mathjax/42)\n\n## Usage\nInstall markdown-it\n```\nnpm install markdown-it\n```\n\nInstall the plugin\n\n```\nnpm install @abreto/markdown-it-katex\n```\n\nUse it in your javascript\n\n```javascript\nvar md = require('markdown-it')(),\n    mk = require('@abreto/markdown-it-katex');\n\nmd.use(mk);\n\n// double backslash is required for javascript strings, but not html input\nvar result = md.render('# Math Rulez! \\n  $\\\\sqrt{3x-1}+(1+x)^2$');\n```\n\nInclude the KaTeX stylesheet in your html:\n```html\n<link rel=\"stylesheet\" href=\"https://cdn.bootcss.com/KaTeX/0.11.1/katex.min.css\">\n```\n\nIf you're using the default markdown-it parser, I also recommend the [github stylesheet](https://github.com/sindresorhus/github-markdown-css):\n```html\n<link rel=\"stylesheet\" href=\"https://cdn.bootcss.com/github-markdown-css/3.0.1/github-markdown.min.css\"/>\n```\n\n`KaTeX` options can be supplied with the second argument to use.\n```javascript\nmd.use(mk, {\"throwOnError\" : false, \"errorColor\" : \" #cc0000\"});\n```\n\n## Examples\n\n### Inline\nSurround your LaTeX with a single `$` on each side for inline rendering.\n```\n$\\sqrt{3x-1}+(1+x)^2$\n```\n\n### Block\nUse two (`$$`) for block rendering. This mode uses bigger symbols and centers\nthe result.\n\n```\n$$\\begin{array}{c}\n\n\\nabla \\times \\vec{\\mathbf{B}} -\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{E}}}{\\partial t} &\n= \\frac{4\\pi}{c}\\vec{\\mathbf{j}}    \\nabla \\cdot \\vec{\\mathbf{E}} & = 4 \\pi \\rho \\\\\n\n\\nabla \\times \\vec{\\mathbf{E}}\\, +\\, \\frac1c\\, \\frac{\\partial\\vec{\\mathbf{B}}}{\\partial t} & = \\vec{\\mathbf{0}} \\\\\n\n\\nabla \\cdot \\vec{\\mathbf{B}} & = 0\n\n\\end{array}$$\n```\n\n## Syntax\n\nMath parsing in markdown is designed to agree with the conventions set by pandoc:\n\n    Anything between two $ characters will be treated as TeX math. The opening $ must\n    have a non-space character immediately to its right, while the closing $ must\n    have a non-space character immediately to its left, and must not be followed\n    immediately by a digit. Thus, $20,000 and $30,000 won’t parse as math. If for some\n    reason you need to enclose text in literal $ characters, backslash-escape them and\n    they won’t be treated as math delimiters.\n\n## Math Syntax Support\n\nKaTeX is based on TeX and LaTeX. Support for both is growing. Here's a list of\ncurrently supported functions:\n\n[Function Support in KaTeX](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX)\n","readmeFilename":"README.md"}