{"name":"markdown-it-katex","version":"2.0.2","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/waylonflinn/markdown-it-katex.git"},"keywords":["markdown","KaTeX","math","LaTeX","markdown-it-plugin","markdown-it"],"author":{"name":"waylonflinn@gmail.com"},"license":"MIT","dependencies":{"katex":"^0.5.1"},"devDependencies":{"markdown-it":"^6.0.0","markdown-it-testgen":"^0.1.4","tape":"^4.5.1"},"gitHead":"6d047604d259df1c6e8e76f47f623cba03169d85","bugs":{"url":"https://github.com/waylonflinn/markdown-it-katex/issues"},"homepage":"https://github.com/waylonflinn/markdown-it-katex#readme","_id":"markdown-it-katex@2.0.2","_shasum":"39ac96ce2643f547e0506addbe2e33a8c752c6ad","_from":".","_npmVersion":"2.15.5","_nodeVersion":"4.4.5","_npmUser":{"name":"waylonflinn","email":"waylonflinn@gmail.com"},"dist":{"shasum":"39ac96ce2643f547e0506addbe2e33a8c752c6ad","tarball":"http://registry-npm.ywwl.com/markdown-it-katex/download/markdown-it-katex-2.0.2.tgz","integrity":"sha512-udQZNbkxvcU09GC8MMm8oTK/FhgAZ5qs/0hAW3SpCq51QiwtS25xgLKy6H5EkbBoYpiXILblDgq/r7TyfhYDtg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDA9bNSdqh3wGWzqeEo9CfPXLFr7sUcZjtjdit0tGKksgIhAIk3eXlEBXy3LV7IWufApyDKmEkhSPSwxKsDwa+Rgr6U"}],"size":6297,"noattachment":false,"key":"/markdown-it-katex/-/markdown-it-katex-2.0.2.tgz"},"maintainers":[{"name":"waylonflinn","email":"waylonflinn@gmail.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/markdown-it-katex-2.0.2.tgz_1476103959388_0.2846968835219741"},"directories":{},"readme":"# markdown-it-katex\n\nAdd Math to your Markdown\n\n[![Build Status](https://travis-ci.org/waylonflinn/markdown-it-katex.svg?branch=master)](https://travis-ci.org/waylonflinn/markdown-it-katex)\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* Try it in your browser: [markdown-it-katex demo](http://waylonflinn.github.io/markdown-it-katex/)\n\n## Usage\nInstall markdown-it\n```\nnpm install markdown-it\n```\n\nInstall the plugin\n\n```\nnpm install markdown-it-katex\n```\n\nUse it in your javascript\n\n```javascript\nvar md = require('markdown-it')(),\n    mk = require('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://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.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.jsdelivr.net/github-markdown-css/2.2.1/github-markdown.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","publish_time":1476103960150,"_cnpm_publish_time":1476103960150,"dist-tags":{"latest":"2.0.3"}}