{"_id":"micromark-extension-math","_rev":"4128647","name":"micromark-extension-math","description":"micromark extension to support math (`$C_L$`)","dist-tags":{"latest":"3.1.0"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"time":{"modified":"2026-03-01T18:28:20.000Z","created":"2020-10-07T07:49:37.745Z","3.1.0":"2024-07-08T10:14:07.623Z","3.0.0":"2023-06-29T09:10:55.019Z","2.1.2":"2023-05-30T14:08:28.721Z","2.1.1":"2023-05-11T07:55:52.176Z","2.1.0":"2023-03-30T12:38:35.706Z","2.0.2":"2021-10-09T08:10:52.748Z","2.0.1":"2021-10-02T10:40:20.814Z","2.0.0":"2021-08-25T09:00:07.855Z","1.0.0":"2021-06-22T19:28:11.206Z","0.1.2":"2020-12-08T17:45:47.055Z","0.1.1":"2020-10-11T11:30:05.272Z","0.1.0":"2020-10-07T07:49:37.745Z"},"users":{},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-math.git"},"versions":{"3.1.0":{"name":"micromark-extension-math","version":"3.1.0","description":"micromark extension to support math (`$C_L$`)","license":"MIT","keywords":["micromark","micromark-extension","math","katex","latex","tex","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-math.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-math/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","exports":{"development":"./dev/index.js","default":"./index.js"},"dependencies":{"@types/katex":"^0.16.0","devlop":"^1.0.0","katex":"^0.16.0","micromark-factory-space":"^2.0.0","micromark-util-character":"^2.0.0","micromark-util-symbol":"^2.0.0","micromark-util-types":"^2.0.0"},"devDependencies":{"@types/node":"^20.0.0","c8":"^10.0.0","micromark":"^4.0.0","micromark-build":"^2.0.0","prettier":"^3.0.0","remark-cli":"^12.0.0","remark-preset-wooorm":"^10.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^0.58.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage && micromark-build","format":"remark . -qfo && prettier . -w --log-level warn && xo --fix","test-api-prod":"node --conditions production test/index.js","test-api-dev":"node --conditions development test/index.js","test-api":"npm run test-api-dev && npm run test-api-prod","test-coverage":"c8 --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"bracketSpacing":false,"semi":false,"singleQuote":true,"tabWidth":2,"trailingComma":"none","useTabs":false},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":{"overrides":[{"files":["**/*.d.ts"],"rules":{"@typescript-eslint/array-type":["error",{"default":"generic"}],"@typescript-eslint/ban-types":["error",{"extendDefaults":true}],"@typescript-eslint/consistent-type-definitions":["error","interface"]}}],"prettier":true,"rules":{"logical-assignment-operators":"off","unicorn/no-this-assignment":"off","unicorn/prefer-at":"off"}},"_id":"micromark-extension-math@3.1.0","gitHead":"e2afefe07f3bdbc8d7188e009aff71566a2ab6f0","types":"./index.d.ts","homepage":"https://github.com/micromark/micromark-extension-math#readme","_nodeVersion":"22.0.0","_npmVersion":"10.8.1","dist":{"shasum":"c42ee3b1dd5a9a03584e83dd8f08e3de510212c1","size":11857,"noattachment":false,"key":"/micromark-extension-math/-/micromark-extension-math-3.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/micromark-extension-math/download/micromark-extension-math-3.1.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-math_3.1.0_1720433647469_0.010901204638100515"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2024-07-08T10:14:07.623Z","publish_time":1720433647623,"_source_registry_name":"default","_cnpm_publish_time":1720433647623},"3.0.0":{"name":"micromark-extension-math","version":"3.0.0","description":"micromark extension to support math (`$C_L$`)","license":"MIT","keywords":["micromark","micromark-extension","math","katex","latex","tex","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-math.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-math/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","exports":{"development":"./dev/index.js","default":"./index.js"},"dependencies":{"@types/katex":"^0.16.0","devlop":"^1.0.0","katex":"^0.16.0","micromark-factory-space":"^2.0.0","micromark-util-character":"^2.0.0","micromark-util-symbol":"^2.0.0","micromark-util-types":"^2.0.0"},"devDependencies":{"@types/node":"^20.0.0","c8":"^8.0.0","micromark":"^4.0.0","micromark-build":"^2.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^0.54.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage && micromark-build","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api-prod":"node --conditions production test/index.js","test-api-dev":"node --conditions development test/index.js","test-api":"npm run test-api-dev && npm run test-api-prod","test-coverage":"c8 --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"bracketSpacing":false,"semi":false,"singleQuote":true,"tabWidth":2,"trailingComma":"none","useTabs":false},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"ignoreCatch":true,"strict":true},"xo":{"overrides":[{"files":["**/*.ts"],"rules":{"@typescript-eslint/consistent-type-definitions":"off"}}],"prettier":true,"rules":{"unicorn/no-this-assignment":"off"}},"types":"./index.d.ts","gitHead":"94be62259aae8bf06ac956e5b269d461c51a0e6d","homepage":"https://github.com/micromark/micromark-extension-math#readme","_id":"micromark-extension-math@3.0.0","_nodeVersion":"20.0.0","_npmVersion":"9.6.4","dist":{"shasum":"c7a47d6ce990812243ad3946a30bb60e4c2a8c76","size":11366,"noattachment":false,"key":"/micromark-extension-math/-/micromark-extension-math-3.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/micromark-extension-math/download/micromark-extension-math-3.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-math_3.0.0_1688029854794_0.108552201334434"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-06-29T09:10:55.019Z","publish_time":1688029855019,"_source_registry_name":"default","_cnpm_publish_time":1688029855019},"2.1.2":{"name":"micromark-extension-math","version":"2.1.2","description":"micromark extension to support math (`$C_L$`)","license":"MIT","keywords":["micromark","micromark-extension","math","katex","latex","tex","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-math.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-math/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","exports":{"development":"./dev/index.js","default":"./index.js"},"dependencies":{"@types/katex":"^0.16.0","katex":"^0.16.0","micromark-factory-space":"^1.0.0","micromark-util-character":"^1.0.0","micromark-util-symbol":"^1.0.0","micromark-util-types":"^1.0.0","uvu":"^0.5.0"},"devDependencies":{"@types/node":"^20.0.0","c8":"^7.0.0","micromark":"^3.0.0","micromark-build":"^1.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^0.54.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage && micromark-build","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api-prod":"node --conditions production test/index.js","test-api-dev":"node --conditions development test/index.js","test-api":"npm run test-api-dev && npm run test-api-prod","test-coverage":"c8 --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"n/file-extension-in-import":"off","unicorn/no-this-assignment":"off"}},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"ea270d18572b43d283be1c52c08288a421f2ae0a","homepage":"https://github.com/micromark/micromark-extension-math#readme","_id":"micromark-extension-math@2.1.2","_nodeVersion":"20.0.0","_npmVersion":"9.6.4","dist":{"shasum":"52c70cc8266cd20ada1ef5a479bfed9a19b789bf","size":11258,"noattachment":false,"key":"/micromark-extension-math/-/micromark-extension-math-2.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/micromark-extension-math/download/micromark-extension-math-2.1.2.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-math_2.1.2_1685455708531_0.41329976049527106"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-30T14:08:28.721Z","publish_time":1685455708721,"_source_registry_name":"default","_cnpm_publish_time":1685455708721},"2.1.1":{"name":"micromark-extension-math","version":"2.1.1","description":"micromark extension to support math (`$C_L$`)","license":"MIT","keywords":["micromark","micromark-extension","math","katex","latex","tex","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-math.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-math/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","exports":{"development":"./dev/index.js","default":"./index.js"},"dependencies":{"@types/katex":"^0.16.0","katex":"^0.16.0","micromark-factory-space":"^1.0.0","micromark-util-character":"^1.0.0","micromark-util-symbol":"^1.0.0","micromark-util-types":"^1.0.0","uvu":"^0.5.0"},"devDependencies":{"@types/node":"^20.0.0","c8":"^7.0.0","micromark":"^3.0.0","micromark-build":"^1.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^0.54.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage && micromark-build","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api-prod":"node --conditions production test/index.js","test-api-dev":"node --conditions development test/index.js","test-api":"npm run test-api-dev && npm run test-api-prod","test-coverage":"c8 --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"n/file-extension-in-import":"off","unicorn/no-this-assignment":"off"}},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"08de8329a2ac1f069511672662d3b4d92330752b","homepage":"https://github.com/micromark/micromark-extension-math#readme","_id":"micromark-extension-math@2.1.1","_nodeVersion":"20.0.0","_npmVersion":"9.6.4","dist":{"shasum":"9a2901d32a275a433e66e452ea48f4996fabf18b","size":11062,"noattachment":false,"key":"/micromark-extension-math/-/micromark-extension-math-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/micromark-extension-math/download/micromark-extension-math-2.1.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-math_2.1.1_1683791751988_0.3535252899410908"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-05-11T07:55:52.176Z","publish_time":1683791752176,"_source_registry_name":"default","_cnpm_publish_time":1683791752176},"2.1.0":{"name":"micromark-extension-math","version":"2.1.0","description":"micromark extension to support math (`$C_L$`)","license":"MIT","keywords":["micromark","micromark-extension","math","katex","latex","tex","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-math.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-math/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","exports":{"development":"./dev/index.js","default":"./index.js"},"dependencies":{"@types/katex":"^0.16.0","katex":"^0.16.0","micromark-factory-space":"^1.0.0","micromark-util-character":"^1.0.0","micromark-util-symbol":"^1.0.0","micromark-util-types":"^1.0.0","uvu":"^0.5.0"},"devDependencies":{"@types/node":"^18.0.0","c8":"^7.0.0","micromark":"^3.0.0","micromark-build":"^1.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^5.0.0","xo":"^0.53.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage && micromark-build","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api-prod":"node --conditions production test/index.js","test-api-dev":"node --conditions development test/index.js","test-api":"npm run test-api-dev && npm run test-api-prod","test-coverage":"c8 --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"n/file-extension-in-import":"off","unicorn/no-this-assignment":"off"}},"remarkConfig":{"plugins":["remark-preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"c44bc3a454774445d82a292f76711e52e52727a7","homepage":"https://github.com/micromark/micromark-extension-math#readme","_id":"micromark-extension-math@2.1.0","_nodeVersion":"19.8.1","_npmVersion":"9.5.1","dist":{"shasum":"15ec67f8a3d6de64428d6eb456b0b00a77402f3b","size":11027,"noattachment":false,"key":"/micromark-extension-math/-/micromark-extension-math-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/micromark-extension-math/download/micromark-extension-math-2.1.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-math_2.1.0_1680179915539_0.5602723481518568"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2023-03-30T12:38:35.706Z","publish_time":1680179915706,"_cnpm_publish_time":1680179915706},"2.0.2":{"name":"micromark-extension-math","version":"2.0.2","description":"micromark extension to support math (`$C_L$`)","license":"MIT","keywords":["micromark","micromark-extension","math","katex","latex","tex","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-math.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-math/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","exports":{"development":"./dev/index.js","default":"./index.js"},"dependencies":{"@types/katex":"^0.11.0","katex":"^0.13.0","micromark-factory-space":"^1.0.0","micromark-util-character":"^1.0.0","micromark-util-symbol":"^1.0.0","micromark-util-types":"^1.0.0","uvu":"^0.5.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","micromark":"^3.0.0","micromark-build":"^1.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.45.0"},"scripts":{"build":"rimraf \"dev/**/*.d.ts\" \"test/**/*.d.ts\" && tsc && type-coverage && micromark-build","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test/index.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"node/file-extension-in-import":"off","unicorn/no-this-assignment":"off","unicorn/prefer-node-protocol":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"523a19970a6115a55a29e43c61aae048a7a17f0f","homepage":"https://github.com/micromark/micromark-extension-math#readme","_id":"micromark-extension-math@2.0.2","_nodeVersion":"16.9.0","_npmVersion":"7.23.0","dist":{"shasum":"bb7d28b907b17f1813dd3d0df2a6df6bb1a4d0e1","size":8137,"noattachment":false,"key":"/micromark-extension-math/-/micromark-extension-math-2.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/micromark-extension-math/download/micromark-extension-math-2.0.2.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-math_2.0.2_1633767052633_0.6072760083846067"},"_hasShrinkwrap":false,"publish_time":1633767052748,"_cnpm_publish_time":1633767052748,"_cnpmcore_publish_time":"2021-12-16T23:51:51.930Z"},"2.0.1":{"name":"micromark-extension-math","version":"2.0.1","description":"micromark extension to support math (`$C_L$`)","license":"MIT","keywords":["micromark","micromark-extension","math","katex","latex","tex","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-math.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-math/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","exports":{"development":"./dev/index.js","default":"./index.js"},"dependencies":{"@types/katex":"^0.11.0","katex":"^0.13.0","micromark-factory-space":"^1.0.0","micromark-util-character":"^1.0.0","micromark-util-symbol":"^1.0.0","micromark-util-types":"^1.0.0","power-assert":"^1.0.0"},"devDependencies":{"@types/power-assert":"^1.0.0","@types/tape":"^4.0.0","c8":"^7.0.0","micromark":"^3.0.0","micromark-build":"^1.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.45.0"},"scripts":{"build":"rimraf \"dev/**/*.d.ts\" \"test/**/*.d.ts\" && tsc && type-coverage && micromark-build","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test/index.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"unicorn/no-this-assignment":"off","unicorn/prefer-node-protocol":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"d95d13110fdec1c0fd9e4bdb42b323e12a729a59","homepage":"https://github.com/micromark/micromark-extension-math#readme","_id":"micromark-extension-math@2.0.1","_nodeVersion":"16.9.0","_npmVersion":"7.23.0","dist":{"shasum":"a435d554ce773a1fc01511562c16586054aaf66c","size":8124,"noattachment":false,"key":"/micromark-extension-math/-/micromark-extension-math-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/micromark-extension-math/download/micromark-extension-math-2.0.1.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-math_2.0.1_1633171220650_0.7201579454566791"},"_hasShrinkwrap":false,"publish_time":1633171220814,"_cnpm_publish_time":1633171220814,"_cnpmcore_publish_time":"2021-12-16T23:51:52.157Z"},"2.0.0":{"name":"micromark-extension-math","version":"2.0.0","description":"micromark extension to support math (`$C_L$`)","license":"MIT","keywords":["micromark","micromark-extension","math","katex","latex","tex","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-math.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-math/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","exports":{"development":"./dev/index.js","default":"./index.js"},"dependencies":{"@types/katex":"^0.11.0","katex":"^0.13.0","micromark-factory-space":"^1.0.0","micromark-util-character":"^1.0.0","micromark-util-symbol":"^1.0.0","micromark-util-types":"^1.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","micromark":"^3.0.0","micromark-build":"^1.0.0","prettier":"^2.0.0","remark-cli":"^10.0.0","remark-preset-wooorm":"^9.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.44.0"},"scripts":{"build":"rimraf \"dev/**/*.d.ts\" \"test/**/*.d.ts\" && tsc && type-coverage && micromark-build","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test/index.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"unicorn/no-this-assignment":"off","unicorn/prefer-node-protocol":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"cd6b611875a55d6ba9cec58dd1b3cec1629fbe2a","homepage":"https://github.com/micromark/micromark-extension-math#readme","_id":"micromark-extension-math@2.0.0","_nodeVersion":"16.6.1","_npmVersion":"7.20.6","dist":{"shasum":"03b908fc3c709e4952d18c37ec4e0ac2ee8df8a7","size":8109,"noattachment":false,"key":"/micromark-extension-math/-/micromark-extension-math-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/micromark-extension-math/download/micromark-extension-math-2.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-math_2.0.0_1629882007732_0.23328411434623808"},"_hasShrinkwrap":false,"publish_time":1629882007855,"_cnpm_publish_time":1629882007855,"_cnpmcore_publish_time":"2021-12-16T23:51:52.386Z"},"1.0.0":{"name":"micromark-extension-math","version":"1.0.0","description":"micromark extension to support math (`$C_L$`)","license":"MIT","keywords":["micromark","micromark-extension","math","katex","latex","tex","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-math.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-math/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","exports":{"development":"./dev/index.js","default":"./index.js"},"dependencies":{"@types/katex":"^0.11.0","katex":"^0.13.0","micromark-factory-space":"^1.0.0","micromark-util-character":"^1.0.0","micromark-util-symbol":"^1.0.0","micromark-util-types":"^1.0.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.0.0","micromark":"^3.0.0","micromark-build":"^1.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.40.0"},"scripts":{"build":"rimraf \"dev/**/*.d.ts\" \"test/**/*.d.ts\" && tsc && type-coverage && micromark-build","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test/index.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node --conditions development test/index.js","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"rules":{"unicorn/no-this-assignment":"off","unicorn/prefer-node-protocol":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"1547b95e38aba147cdeedd9d69843de44d62ef34","homepage":"https://github.com/micromark/micromark-extension-math#readme","_id":"micromark-extension-math@1.0.0","_nodeVersion":"16.2.0","_npmVersion":"7.18.1","dist":{"shasum":"596a4c036ef9cf6f8d84801d0016b18fed369d3d","size":7775,"noattachment":false,"key":"/micromark-extension-math/-/micromark-extension-math-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/micromark-extension-math/download/micromark-extension-math-1.0.0.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-math_1.0.0_1624390090822_0.5567405381177399"},"_hasShrinkwrap":false,"publish_time":1624390091206,"_cnpm_publish_time":1624390091206,"_cnpmcore_publish_time":"2021-12-16T23:51:52.642Z"},"0.1.2":{"name":"micromark-extension-math","version":"0.1.2","description":"micromark extension to support math (`$C_L$`)","license":"MIT","keywords":["micromark","micromark-extension","math","katex","latex","tex","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-math.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-math/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"katex":"^0.12.0","micromark":"~2.11.0"},"devDependencies":{"nyc":"^15.0.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","tape":"^5.0.0","xo":"^0.36.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"0fc66fb7909cb98cb27132d13f3108e7af17b34c","homepage":"https://github.com/micromark/micromark-extension-math#readme","_id":"micromark-extension-math@0.1.2","_nodeVersion":"15.1.0","_npmVersion":"6.14.9","dist":{"shasum":"5d7bb2b86018da4a758c05f3991664430ee4d711","size":5887,"noattachment":false,"key":"/micromark-extension-math/-/micromark-extension-math-0.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/micromark-extension-math/download/micromark-extension-math-0.1.2.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-math_0.1.2_1607449546940_0.12420576972141961"},"_hasShrinkwrap":false,"publish_time":1607449547055,"_cnpm_publish_time":1607449547055,"_cnpmcore_publish_time":"2021-12-16T23:51:52.841Z"},"0.1.1":{"name":"micromark-extension-math","version":"0.1.1","description":"micromark extension to support math (`$C_L$`)","license":"MIT","keywords":["micromark","micromark-extension","math","katex","latex","tex","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-math.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-math/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"katex":"^0.12.0","micromark":"~2.10.0"},"devDependencies":{"nyc":"^15.0.0","prettier":"^2.0.0","remark-cli":"^8.0.0","remark-preset-wooorm":"^7.0.0","tape":"^5.0.0","xo":"^0.33.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"82e2bd549c3da77d857add100528b8b7b3b576f1","homepage":"https://github.com/micromark/micromark-extension-math#readme","_id":"micromark-extension-math@0.1.1","_nodeVersion":"14.8.0","_npmVersion":"6.14.8","dist":{"shasum":"72f74b8d7e60f36763df809afe47f0b8e1050c42","size":5896,"noattachment":false,"key":"/micromark-extension-math/-/micromark-extension-math-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/micromark-extension-math/download/micromark-extension-math-0.1.1.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-math_0.1.1_1602415804973_0.766697949117737"},"_hasShrinkwrap":false,"publish_time":1602415805272,"_cnpm_publish_time":1602415805272,"_cnpmcore_publish_time":"2021-12-16T23:51:53.064Z"},"0.1.0":{"name":"micromark-extension-math","version":"0.1.0","description":"micromark extension to support math (`$C_L$`)","license":"MIT","keywords":["micromark","micromark-extension","math","katex","latex","tex","markdown","unified"],"repository":{"type":"git","url":"git+https://github.com/micromark/micromark-extension-math.git"},"bugs":{"url":"https://github.com/micromark/micromark-extension-math/issues"},"funding":{"type":"opencollective","url":"https://opencollective.com/unified"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"katex":"^0.12.0","micromark":"~2.9.0"},"devDependencies":{"nyc":"^15.0.0","prettier":"^2.0.0","remark-cli":"^8.0.0","remark-preset-wooorm":"^7.0.0","tape":"^5.0.0","xo":"^0.33.0"},"scripts":{"format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run test-coverage"},"nyc":{"check-coverage":true,"lines":100,"functions":100,"branches":100},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"4d7956a66d2a70f9afc01aba7cdfc667cc285761","homepage":"https://github.com/micromark/micromark-extension-math#readme","_id":"micromark-extension-math@0.1.0","_nodeVersion":"14.8.0","_npmVersion":"6.14.8","dist":{"shasum":"9810946d49ca2f85a13a5ec7b263d15e680c8fab","size":5894,"noattachment":false,"key":"/micromark-extension-math/-/micromark-extension-math-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/micromark-extension-math/download/micromark-extension-math-0.1.0.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/micromark-extension-math_0.1.0_1602056977625_0.8587463573164957"},"_hasShrinkwrap":false,"publish_time":1602056977745,"_cnpm_publish_time":1602056977745,"_cnpmcore_publish_time":"2021-12-16T23:51:53.280Z"}},"readme":"# micromark-extension-math\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n[![Sponsors][sponsors-badge]][collective]\n[![Backers][backers-badge]][collective]\n[![Chat][chat-badge]][chat]\n\n[micromark][] extensions to support math (`$C_L$`).\n\n## Contents\n\n* [What is this?](#what-is-this)\n* [When to use this](#when-to-use-this)\n* [Install](#install)\n* [Use](#use)\n* [API](#api)\n  * [`math(options?)`](#mathoptions)\n  * [`mathHtml(options?)`](#mathhtmloptions)\n  * [`HtmlOptions`](#htmloptions)\n  * [`Options`](#options)\n* [Authoring](#authoring)\n* [HTML](#html)\n* [CSS](#css)\n* [Syntax](#syntax)\n* [Types](#types)\n* [Compatibility](#compatibility)\n* [Security](#security)\n* [Related](#related)\n* [Contribute](#contribute)\n* [License](#license)\n\n## What is this?\n\nThis package contains two extensions that add support for math syntax\nin markdown to [`micromark`][micromark].\n\nAs there is no spec for math in markdown, this extension follows how code\n(fenced and text) works in Commonmark, but uses dollars.\n\n## When to use this\n\nThis project is useful when you want to support math in markdown.\nExtending markdown with a syntax extension makes the markdown less portable.\nLaTeX equations are also quite hard.\nBut this mechanism works well when you want authors, that have some LaTeX\nexperience, to be able to embed rich diagrams of math in scientific text.\n\nYou can use these extensions when you are working with [`micromark`][micromark]\nalready.\n\nWhen you need a syntax tree, you can combine this package with\n[`mdast-util-math`][mdast-util-math].\n\nAll these packages are used [`remark-math`][remark-math], which focusses on\nmaking it easier to transform content by abstracting these internals away.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 16+), install with [npm][]:\n\n[npm][]:\n\n```sh\nnpm install micromark-extension-math\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {math, mathHtml} from 'https://esm.sh/micromark-extension-math@3'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {math, mathHtml} from 'https://esm.sh/micromark-extension-math@3?bundle'\n</script>\n```\n\n## Use\n\nSay our document `example.md` contains:\n\n```markdown\nLift($L$) can be determined by Lift Coefficient ($C_L$) like the following equation.\n\n$$\nL = \\frac{1}{2} \\rho v^2 S C_L\n$$\n```\n\n…and our module `example.js` looks as follows:\n\n```js\nimport fs from 'node:fs/promises'\nimport {micromark} from 'micromark'\nimport {math, mathHtml} from 'micromark-extension-math'\n\nconst output = micromark(await fs.readFile('example.md'), {\n  extensions: [math()],\n  htmlExtensions: [mathHtml()]\n})\n\nconsole.log(output)\n```\n\n…now running `node example.js` yields (abbreviated):\n\n```html\n<p>Lift(<span class=\"math math-inline\"><span class=\"katex\">…</span></span>) can be determined by Lift Coefficient (<span class=\"math math-inline\"><span class=\"katex\">…</span></span>) like the following equation.</p>\n<div class=\"math math-display\"><span class=\"katex-display\"><span class=\"katex\">…</span></span></div>\n```\n\n## API\n\nThis package exports the identifiers [`math`][api-math] and\n[`mathHtml`][api-math-html].\nThere is no default export.\n\nThe export map supports the [`development` condition][development].\nRun `node --conditions development module.js` to get instrumented dev code.\nWithout this condition, production code is loaded.\n\n### `math(options?)`\n\nCreate an extension for `micromark` to enable math syntax.\n\n###### Parameters\n\n* `options` ([`Options`][api-options], default: `{}`)\n  — configuration\n\n###### Returns\n\nExtension for `micromark` that can be passed in `extensions`, to enable math\nsyntax ([`Extension`][micromark-extension]).\n\n### `mathHtml(options?)`\n\nCreate an extension for `micromark` to support math when serializing to HTML.\n\n> ???? **Note**: this uses KaTeX to render math.\n\n###### Parameters\n\n* `options` ([`HtmlOptions`][api-html-options], default: `{}`)\n  — configuration\n\n###### Returns\n\nExtension for `micromark` that can be passed in `htmlExtensions`, to support\nmath when serializing to HTML ([`HtmlExtension`][micromark-html-extension]).\n\n### `HtmlOptions`\n\nConfiguration for HTML output (optional).\n\n> ???? **Note**: passed to [`katex.renderToString`][katex-options].\n> `displayMode` is overwritten by this plugin, to `false` for math in text\n> (inline), and `true` for math in flow (block).\n\n###### Type\n\n```ts\ntype Options = Omit<import('katex').KatexOptions, 'displayMode'>\n```\n\n### `Options`\n\nConfiguration (TypeScript type).\n\n###### Fields\n\n* `singleDollarTextMath` (`boolean`, default: `true`)\n  — whether to support math (text, inline) with a single dollar.\n  Single dollars work in Pandoc and many other places, but often interfere\n  with “normal” dollars in text.\n  If you turn this off, you use two or more dollars for text math.\n\n## Authoring\n\nWhen authoring markdown with math, keep in mind that math doesn’t work in most\nplaces.\nNotably, GitHub currently has a really weird crappy client-side regex-based\nthing.\nBut on your own (math-heavy?) site it can be great!\nYou can use code (fenced) with an info string of `math` to improve this, as\nthat works in many places.\n\n## HTML\n\nMath (flow) does not relate to HTML elements.\n`MathML`, which is sort of like SVG but for math, exists but it doesn’t work\nwell and isn’t widely supported.\nInstead, this uses [KaTeX][], which generates MathML as a fallback but also\ngenerates a bunch of divs and spans so math look pretty.\nThe KaTeX result is wrapped in `<div>` (for flow, block) and `<span>` (for text,\ninline) elements, with two classes: `math` and either `math-display` or\n`math-inline`.\n\nWhen turning markdown into HTML, each line ending in math (text) is turned\ninto a space.\n\n## CSS\n\nThe HTML produced by KaTeX requires CSS to render correctly.\nYou should use `katex.css` somewhere on the page where the math is shown to\nstyle it properly.\nAt the time of writing, the last version is:\n\n<!-- To do: update and copy paste the one from: https://katex.org/docs/browser -->\n\n```html\n<link rel=\"stylesheet\" href=\"https://cdn.jsdelivr.net/npm/katex@0.16.11/dist/katex.min.css\">\n```\n\n## Syntax\n\nMath forms with the following BNF:\n\n```bnf\n; Restriction: the number of markers in the closing sequence must be equal\n; to the number of markers in the opening sequence.\nmath_text ::= sequence_text 1*byte sequence_text\nmath_flow ::= fence_open *( eol *line ) [ eol fence_close ]\n\n; Restriction: not preceded or followed by the marker.\nsequence_text ::= 1*'$'\n\nfence_open ::= sequence_flow meta\n; Restriction: the number of markers in the closing fence sequence must be\n; equal to or greater than the number of markers in the opening fence\n; sequence.\nfence_close ::= sequence_flow *space_or_tab\nsequence_flow ::= 2*'$'\n; Restriction: the marker cannot occur in `meta`\nmeta ::= 1*line\n\n; Character groups for informational purposes.\nbyte ::= 0x00..=0xFFFF\neol ::= '\\n' | '\\r' | '\\r\\n'\nline ::= byte - eol\n```\n\nThe above grammar shows that it is not possible to create empty math (text).\nIt is possible to include the sequence marker (dollar) in math (text), by\nwrapping it in bigger or smaller sequences:\n\n```markdown\nInclude more: $a$$b$ or include less: $$a$b$$.\n```\n\nIt is also possible to include just one marker:\n\n```markdown\nInclude just one: $$ $ $$.\n```\n\nSequences are “gready”, in that they cannot be preceded or followed by more\nmarkers.\nTo illustrate:\n\n```markdown\nNot math: $$x$.\n\nNot math: $x$$.\n\nEscapes work, this is math: \\$$x$.\n\nEscapes work, this is math: $x$\\$.\n```\n\nYields:\n\n```html\n<p>Not math: $$x$.</p>\n<p>Not math: $x$$.</p>\n<p>Escapes work, this is math: $<span>…</span>.</p>\n<p>Escapes work, this is math: <span>…</span>$.</p>\n```\n\nThat is because, when turning markdown into HTML, the first and last space,\nif both exist and there is also a non-space in the math, are removed.\nLine endings, at that stage, are considered as spaces.\n\nAs the math (flow) construct occurs in flow, like all flow constructs, it must\nbe followed by an eol (line ending) or eof (end of file).\n\nThe above grammar does not show how indentation of each line is handled.\nTo parse math (flow), let `x` be the number of `space_or_tab` characters\nbefore the opening fence sequence, after interpreting tabs based on how many\nvirtual spaces they represent.\nEach line of text is then allowed (not required) to be indented with up\nto `x` spaces or tabs, which are then ignored as an indent instead of being\nconsidered as part of the content.\nThis indent does not affect the closing fence.\nIt can be indented up to a separate 3 real or virtual spaces.\nA bigger indent makes it part of the content instead of a fence.\n\nThe `meta` part is interpreted as the [string][micromark-content-types] content\ntype.\nThat means that character escapes and character references are allowed.\n\nThe optional `meta` part is ignored: it is not used when parsing or\nrendering.\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports the additional types [`HtmlOptions`][api-html-options]\nand [`Options`][api-options].\n\n## Compatibility\n\nProjects maintained by the unified collective are compatible with maintained\nversions of Node.js.\n\nWhen we cut a new major release, we drop support for unmaintained versions of\nNode.\nThis means we try to keep the current release line,\n`micromark-extension-math@^3`, compatible with Node.js 16.\n\nThis package works with `micromark` version `3` and later.\n\n## Security\n\nThis package is safe assuming that you trust KaTeX.\nAny vulnerability in it could open you to a [cross-site scripting (XSS)][xss]\nattack.\n\n## Related\n\n* [`remark-math`][remark-math]\n  — remark (and rehype) plugins to support math\n* [`mdast-util-math`][mdast-util-math]\n  — mdast utility to support math\n\n## Contribute\n\nSee [`contributing.md` in `micromark/.github`][contributing] for ways to get\nstarted.\nSee [`support.md`][support] for ways to get help.\n\nThis project has a [code of conduct][coc].\nBy interacting with this repository, organization, or community you agree to\nabide by its terms.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/micromark/micromark-extension-math/workflows/main/badge.svg\n\n[build]: https://github.com/micromark/micromark-extension-math/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/micromark/micromark-extension-math.svg\n\n[coverage]: https://codecov.io/github/micromark/micromark-extension-math\n\n[downloads-badge]: https://img.shields.io/npm/dm/micromark-extension-math.svg\n\n[downloads]: https://www.npmjs.com/package/micromark-extension-math\n\n[size-badge]: https://img.shields.io/badge/dynamic/json?label=minzipped%20size&query=$.size.compressedSize&url=https://deno.bundlejs.com/?q=micromark-extension-math\n\n[size]: https://bundlejs.com/?q=micromark-extension-math\n\n[sponsors-badge]: https://opencollective.com/unified/sponsors/badge.svg\n\n[backers-badge]: https://opencollective.com/unified/backers/badge.svg\n\n[collective]: https://opencollective.com/unified\n\n[chat-badge]: https://img.shields.io/badge/chat-discussions-success.svg\n\n[chat]: https://github.com/micromark/micromark/discussions\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esmsh]: https://esm.sh\n\n[license]: license\n\n[author]: https://wooorm.com\n\n[contributing]: https://github.com/micromark/.github/blob/main/contributing.md\n\n[support]: https://github.com/micromark/.github/blob/main/support.md\n\n[coc]: https://github.com/micromark/.github/blob/main/code-of-conduct.md\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[typescript]: https://www.typescriptlang.org\n\n[development]: https://nodejs.org/api/packages.html#packages_resolving_user_conditions\n\n[micromark]: https://github.com/micromark/micromark\n\n[micromark-content-types]: https://github.com/micromark/micromark#content-types\n\n[micromark-html-extension]: https://github.com/micromark/micromark#htmlextension\n\n[micromark-extension]: https://github.com/micromark/micromark#syntaxextension\n\n[mdast-util-math]: https://github.com/syntax-tree/mdast-util-math\n\n[remark-math]: https://github.com/remarkjs/remark-math\n\n[katex]: https://katex.org\n\n[katex-options]: https://katex.org/docs/options.html\n\n[xss]: https://en.wikipedia.org/wiki/Cross-site_scripting\n\n[api-math]: #mathoptions\n\n[api-math-html]: #mathhtmloptions\n\n[api-options]: #options\n\n[api-html-options]: #htmloptions\n","_attachments":{},"homepage":"https://github.com/micromark/micromark-extension-math#readme","bugs":{"url":"https://github.com/micromark/micromark-extension-math/issues"},"license":"MIT"}