{"_id":"@area403/markdown-it-mathjax","_rev":"1-f3493c6712bfb4debf3809d639b5e685","name":"@area403/markdown-it-mathjax","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@area403/markdown-it-mathjax","version":"1.0.0","description":"markdown it plugin for mathjax","main":"index.js","scripts":{"test":"node test/all.js"},"repository":{"type":"git","url":"git+https://github.com/crocme10/markdown-it-mathjax.git"},"keywords":["markdown","markdown-it","markdown-it-plugin","mathjax"],"author":{"name":"Matthieu Paindavoine"},"license":"MIT","bugs":{"url":"https://github.com/crocme10/markdown-it-mathjax/issues"},"homepage":"https://github.com/crocme10/markdown-it-mathjax#readme","dependencies":{"mathjax-full":"^3.1.2"},"devDependencies":{"markdown-it":"^12.0.2","markdown-it-testgen":"^0.1.6","tape":"^5.0.1"},"gitHead":"7e16a7207a576c72ec77ae5a72b5d744a8535320","_id":"@area403/markdown-it-mathjax@1.0.0","_nodeVersion":"14.14.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-H8B6ffcsI7R/LEQ+i6QM9C2jipjJNDNGV1m8c9Z7ksTHumLRTZ5lL30Jp7b9nhpio1qeXU+0+NUMx4znNcXjKA==","shasum":"5dc60d5e55739f1c471b88102e7e13063d61cf74","tarball":"https://registry.npmjs.org/@area403/markdown-it-mathjax/-/markdown-it-mathjax-1.0.0.tgz","fileCount":8,"unpackedSize":20056,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflemICRA9TVsSAnZWagAAzKEP/11dDyaEL1Udvd4xIgDq\n5VPYpDtuFV2JCHwYZdsQWOODTNnXJiXq2jS+sMLqeyyMlNu3o0Zi/7SQ48Gi\nQMKO3hCYCUi+NxfU+qRNkUsA5b1ZDyR+Ctmq3N0B4FV9oxmBe55eNJv+lEj5\nSQ4hLhmkqQmRBrNAeqBi5JtPvIQNnsTdzkAi3ndoIblKq/AMZuikWC8M5I3U\n1ON0HWWE06MAX2pWT2Vre4VMEzpTTkqo76fptyiG6ttVO2+XWhCjJWJeWzOE\n/QQgWfwcntDcTzldm2rVH2I125jRHbusR4yy+62/gOmvA6BFYHs+Ngfg8vjw\nNuRgwM8RFkk62rfz0V683R/HX5v0UF6SNFxmLgaS01WhJip+/KWxCZjxepiE\n1Z6tguoaS8bYQu60axzGn0dN10LawEt5AEbI5ZN7voQZJY54j6ve/ooNb3aG\nTamZ7rdLih3sSzhb5y3NPTgYhk2IrD1Hiby/FEa30VqHr4uV5/v+leudmivS\nJWHnpjdclLyKs5+j6k190MZ9AFgQ+kiHnruVXsHwlhrwcbT+6x5E1iGbhVk8\n1mj6m2DtQT167co896eUAWxW8NRMSo8YhFEaGA7LZRpZNT2G0Rik2J/UxqtO\nL7W/qY5DibSPqiOPCGDQyq+aZkDo0QHAmshkaNnMzDEd0c7rrsrpTquNHf1L\nE54C\r\n=WkCN\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCkg/XaVGkjn7YUk2VCOmwg6J7sbGo5sYshUkOsIKksJQIgM07AzLbREF2vPa8+QP1wTJ3taNEgUyq4BoJBl3l5I7c="}]},"maintainers":[{"name":"riendegris","email":"matt@area403.org"}],"_npmUser":{"name":"riendegris","email":"matt@area403.org"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/markdown-it-mathjax_1.0.0_1603660167900_0.24576340071527558"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-25T21:09:27.651Z","1.0.0":"2020-10-25T21:09:28.042Z","modified":"2022-04-04T15:22:48.776Z"},"maintainers":[{"name":"riendegris","email":"matt@area403.org"}],"description":"markdown it plugin for mathjax","homepage":"https://github.com/crocme10/markdown-it-mathjax#readme","keywords":["markdown","markdown-it","markdown-it-plugin","mathjax"],"repository":{"type":"git","url":"git+https://github.com/crocme10/markdown-it-mathjax.git"},"author":{"name":"Matthieu Paindavoine"},"bugs":{"url":"https://github.com/crocme10/markdown-it-mathjax/issues"},"license":"MIT","readme":"Based on code by\nTakahiro Ikeuchi\nmarkdown-it-katex\n\nAdapted for mathjax\n\n# markdown-it-mathjax\n\nAdd Math to your Markdown\n\n## Usage\n\nInstall markdown-it\n\n```bash\nnpm install markdown-it\n```\n\nInstall the plugin\n\n```bash\nnpm install @area403/markdown-it-mathjax\n```\n\nUse it in your javascript\n\n```javascript\nvar md = require('markdown-it')(),\n    mk = require('@area403/markdown-it-mathjax');\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\n```html\n<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/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\n```html\n<link rel=\"stylesheet\" href=\"https://cdnjs.cloudflare.com/ajax/libs/github-markdown-css/4.0.0/github-markdown.min.css\"/>\n```\n\n`KaTeX` options can be supplied with the second argument to use.\n\n```javascript\nmd.use(mk, {\"throwOnError\" : false, \"errorColor\" : \" #cc0000\"});\n```\n\n## Examples\n\n### Inline\n\nSurround your LaTeX with a single `$` on each side for inline rendering.\n\n```latex\n$\\sqrt{3x-1}+(1+x)^2$\n```\n\n### Block\n\nUse two (`$$`) for block rendering. This mode uses bigger symbols and centers\nthe result.\n\n```latex\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[Things that KaTeX does not (yet) support](https://github.com/KaTeX/KaTeX/wiki/Things-that-KaTeX-does-not-%28yet%29-support)\n","readmeFilename":"README.md"}