{"versions":{"0.0.0":{"name":"@m2d/math","version":"0.0.0","private":false,"description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","author":{"name":"Mayank Kumar Chaudhari","url":"https://mayank-chaudhari.vercel.app"},"license":"MPL-2.0","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/tiny-md/mdast2docx.git"},"bugs":{"url":"https://github.com/tiny-md/mdast2docx/issues"},"homepage":"https://github.com/tiny-md/mdast2docx/tree/main/m2d/math","scripts":{"build":"tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c","clean":"rm -rf dist","dev":"tsup --watch && tsc -p tsconfig-build.json -w","typecheck":"tsc --noEmit","lint":"eslint src/","lint:fix":"eslint src/ --fix","test":"vitest run --coverage"},"peerDependencies":{"docx":"^9.3.0"},"dependencies":{"latex-math":"^0.0.1"},"devDependencies":{"@repo/eslint-config":"workspace:*","@repo/typescript-config":"workspace:*","@m2d/core":"workspace:*","@types/node":"^22.13.11","@unified-latex/unified-latex-types":"^1.8.0","esbuild-plugin-rdi":"^0.0.0","tsup":"^8.4.0","typescript":"^5.8.2","vite-tsconfig-paths":"^5.1.4","vitest":"^3.0.9"},"funding":[{"type":"github","url":"https://github.com/sponsors/tiny-md"},{"type":"github","url":"https://github.com/sponsors/mayank1513"}],"keywords":["automation","docx","document generator","export","latex","markdown","markdown-to-docx","math","math expressions","math plugin","mdast","mdast2docx","ms-word","open-source","remark","rich text","seamless integration","text-processing","typescript","unified","web-development"],"_id":"@m2d/math@0.0.0","gitHead":"589082076cc78818defcacde47f8db518faa717f","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-EXcGiC0pYsKSqeNyJjcklKkUM+ZwR/MizmcRRcm8UJd9NyiGwR/3jNJ8b0Xkff/cEYqAjI3G4uEFvHC88HRgyw==","shasum":"4948ac81e57d8f0d312c0c116a30862ceb272920","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@m2d/math/-/math-0.0.0.tgz","fileCount":5,"unpackedSize":16438,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmath@0.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFU9lhRs4pWyb1HNZqNLkFZH+tBmv9yydfc3a1OJmkEiAiAWvhMrwgQY01KWOzlkSK7LPN8+i1HC7Z9oKyli/k3Qig=="}],"size":5233},"_npmUser":{"name":"anonymous","email":"mayank.srmu@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mayank.srmu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/math_0.0.0_1742734519368_0.7125971866881327"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-23T12:55:19.526Z","publish_time":1742734519526,"_source_registry_name":"default","contributors":[]},"0.0.1":{"name":"@m2d/math","version":"0.0.1","private":false,"description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","author":{"name":"Mayank Kumar Chaudhari","url":"https://mayank-chaudhari.vercel.app"},"license":"MPL-2.0","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/tiny-md/mdast2docx.git"},"bugs":{"url":"https://github.com/tiny-md/mdast2docx/issues"},"homepage":"https://github.com/tiny-md/mdast2docx/tree/main/m2d/math","scripts":{"build":"tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c","clean":"rm -rf dist","dev":"tsup --watch && tsc -p tsconfig-build.json -w","typecheck":"tsc --noEmit","lint":"eslint src/","lint:fix":"eslint src/ --fix","test":"vitest run --coverage"},"peerDependencies":{"docx":"^9.3.0"},"dependencies":{"latex-math":"^0.0.2"},"devDependencies":{"@m2d/core":"latest","@repo/eslint-config":"workspace:*","@repo/typescript-config":"workspace:*","@types/node":"^22.13.12","@unified-latex/unified-latex-types":"^1.8.0","esbuild-plugin-rdi":"^0.0.0","tsup":"^8.4.0","typescript":"^5.8.2","vite-tsconfig-paths":"^5.1.4","vitest":"^3.0.9"},"funding":[{"type":"github","url":"https://github.com/sponsors/tiny-md"},{"type":"github","url":"https://github.com/sponsors/mayank1513"}],"keywords":["automation","docx","document generator","export","latex","markdown","markdown-to-docx","math","math expressions","math plugin","mdast","mdast2docx","ms-word","open-source","remark","rich text","seamless integration","text-processing","typescript","unified","web-development"],"_id":"@m2d/math@0.0.1","gitHead":"5f2a278575851f8e08ab6a870dec363247625aa5","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-p4ySsaSaFNGuaVPrjKi/9wpIPqhDpMGVjko0yJrXtPLbHNWTw0yD7CjkS8hqNL6BfvnHXgsezefrMghaXZSvVg==","shasum":"eac3bb54671a760dd34ac219bd8997dd505af6b7","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@m2d/math/-/math-0.0.1.tgz","fileCount":2,"unpackedSize":5209,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmath@0.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCID1QAOFPFJl4uANFG3Mn5t9Xcb8qUHzxBpGBG5te8brMAiEAg5oW1LQlSnuESYC8Rbh2VIAsSxeEkPFh9tPTrCtG6W4="}],"size":2358},"_npmUser":{"name":"anonymous","email":"mayank.srmu@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mayank.srmu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/math_0.0.1_1742816830892_0.491644732329656"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-24T11:47:11.075Z","publish_time":1742816831075,"_source_registry_name":"default","contributors":[]},"0.0.2":{"name":"@m2d/math","version":"0.0.2","private":false,"description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","author":{"name":"Mayank Kumar Chaudhari","url":"https://mayank-chaudhari.vercel.app"},"license":"MPL-2.0","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/tiny-md/mdast2docx.git"},"bugs":{"url":"https://github.com/tiny-md/mdast2docx/issues"},"homepage":"https://github.com/tiny-md/mdast2docx/tree/main/m2d/math","scripts":{"build":"tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c","clean":"rm -rf dist","dev":"tsup --watch && tsc -p tsconfig-build.json -w","typecheck":"tsc --noEmit","lint":"eslint src/","lint:fix":"eslint src/ --fix","test":"vitest run --coverage"},"peerDependencies":{"docx":"^9.3.0"},"dependencies":{"@m2d/core":"workspace:*","latex-math":"^0.0.2"},"devDependencies":{"@repo/eslint-config":"workspace:*","@repo/typescript-config":"workspace:*","@types/node":"^22.13.13","@unified-latex/unified-latex-types":"^1.8.0","docx":"^9.3.0","esbuild-plugin-rdi":"^0.0.0","tsup":"^8.4.0","typescript":"^5.8.2","vite-tsconfig-paths":"^5.1.4","vitest":"^3.0.9"},"funding":[{"type":"github","url":"https://github.com/sponsors/tiny-md"},{"type":"github","url":"https://github.com/sponsors/mayank1513"}],"keywords":["automation","docx","document generator","export","latex","markdown","markdown-to-docx","math","math expressions","math plugin","mdast","mdast2docx","ms-word","open-source","remark","rich text","seamless integration","text-processing","typescript","unified","web-development"],"_id":"@m2d/math@0.0.2","gitHead":"6bf115ecf15c9279ab334c06df639a3ad9aa474f","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-IxI30xsu2s/TeWwb1uNvOxyq7Lw1vsoYuhkdbedwtQG/kKzMLFIki9La6Ns0pTncax83MkHXgKiF6zZhB3n4bg==","shasum":"308bdae2b134b2d9be7186b822a1cd0e137c0a62","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@m2d/math/-/math-0.0.2.tgz","fileCount":5,"unpackedSize":16503,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmath@0.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIBMZzxPufXmgZ8HjSd/a4wGac+ceCeJmcJivyZ7rvB+hAiEAoFGznQFMwMGe+dVcWSfAEzKMi4PVzCq5m2V1J9UWBy0="}],"size":5238},"_npmUser":{"name":"anonymous","email":"mayank.srmu@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mayank.srmu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/math_0.0.2_1742822110380_0.5105783376673425"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-24T13:15:10.602Z","publish_time":1742822110602,"_source_registry_name":"default","contributors":[]},"0.0.3":{"name":"@m2d/math","author":{"name":"Mayank Kumar Chaudhari","url":"https://mayank-chaudhari.vercel.app"},"private":false,"version":"0.0.3","description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","license":"MPL-2.0","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/md2docx/math.git"},"bugs":{"url":"https://github.com/md2docx/math/issues"},"homepage":"https://github.com/md2docx/math/#readme","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c","clean":"rm -rf dist","dev":"tsup --watch && tsc -p tsconfig-build.json -w","typecheck":"tsc --noEmit","lint":"eslint src/","lint:fix":"eslint src/ --fix","test":"vitest run --coverage"},"devDependencies":{"@repo/eslint-config":"workspace:*","@repo/typescript-config":"workspace:*","@testing-library/react":"^16.2.0","@types/node":"^22.13.12","@types/react":"^19.0.12","@types/react-dom":"^19.0.4","@unified-latex/unified-latex-types":"^1.8.0","@vitejs/plugin-react":"^4.3.4","@vitest/coverage-v8":"^3.0.9","docx":"^9.3.0","esbuild-plugin-rdi":"^0.0.0","jsdom":"^26.0.0","remark-parse":"^11.0.0","tsup":"^8.4.0","typescript":"^5.8.2","unified":"^11.0.5","vite-tsconfig-paths":"^5.1.4","vitest":"^3.0.9"},"dependencies":{"@m2d/core":"^0.0.3","latex-math":"^0.0.2"},"peerDependencies":{"docx":"^9.3.0","remark-math":"^6.0.0"},"funding":[{"type":"github","url":"https://github.com/sponsors/md2docx"},{"type":"github","url":"https://github.com/sponsors/mayank1513"}],"keywords":["math","latex","math expressions","math plugin","markdown-to-docx","mdast2docx","markdown","mdast","docx","ms-word","text-processing","export","document generator","typescript","remark","unified","open-source","seamless integration","automation","web-development","rich text","mayank1513"],"_id":"@m2d/math@0.0.3","gitHead":"ab75343b5e2980545baf248753f4f52ab27df181","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-n69iXWOiWCnkzxCGg1bZLM6ZcHJGswSh/FP5tgx70kKtY/vTd/TfhsCp8uJ+LAiqIUW9GloYb+UplNDyC9gqXQ==","shasum":"0e330aa1fcddf1873446d637b6eb868cc93cf25b","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@m2d/math/-/math-0.0.3.tgz","fileCount":5,"unpackedSize":17052,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmath@0.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD5or1hC2O5uspn5YExKgHMR9aHb1YKzZfpm9wuIYfeSAIgQstcZGEIoeh2SGzFYq0pu7snOlIQHmeZNx8yRxFbVJY="}],"size":5424},"_npmUser":{"name":"anonymous","email":"mayank.srmu@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mayank.srmu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/math_0.0.3_1742955959653_0.7198240242152882"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-03-26T02:25:59.830Z","publish_time":1742955959830,"_source_registry_name":"default","contributors":[]},"0.0.4":{"name":"@m2d/math","author":{"name":"Mayank Kumar Chaudhari","url":"https://mayank-chaudhari.vercel.app"},"private":false,"version":"0.0.4","description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","license":"MPL-2.0","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/md2docx/math.git"},"bugs":{"url":"https://github.com/md2docx/math/issues"},"homepage":"https://github.com/md2docx/math/#readme","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c","clean":"rm -rf dist","dev":"tsup --watch && tsc -p tsconfig-build.json -w","typecheck":"tsc --noEmit","lint":"eslint src/","lint:fix":"eslint src/ --fix","test":"vitest run --coverage"},"devDependencies":{"@repo/eslint-config":"workspace:*","@repo/typescript-config":"workspace:*","@testing-library/react":"^16.3.0","@types/node":"^22.14.0","@types/react":"^19.1.0","@types/react-dom":"^19.1.1","@unified-latex/unified-latex-types":"^1.8.0","@vitejs/plugin-react":"^4.3.4","@vitest/coverage-v8":"^3.1.1","docx":"^9.3.0","esbuild-plugin-rdi":"^0.0.0","jsdom":"^26.0.0","remark-parse":"^11.0.0","tsup":"^8.4.0","typescript":"^5.8.3","unified":"^11.0.5","vite-tsconfig-paths":"^5.1.4","vitest":"^3.1.1"},"dependencies":{"@m2d/core":"^0.0.4","latex-math":"^0.0.2"},"peerDependencies":{"docx":"^9.3.0","remark-math":"^6.0.0"},"funding":[{"type":"github","url":"https://github.com/sponsors/md2docx"},{"type":"github","url":"https://github.com/sponsors/mayank1513"}],"keywords":["math","latex","math expressions","math plugin","markdown-to-docx","mdast2docx","markdown","mdast","docx","ms-word","text-processing","export","document generator","typescript","remark","unified","open-source","seamless integration","automation","web-development","rich text","mayank1513"],"_id":"@m2d/math@0.0.4","gitHead":"032162570744c0409925f0963846820b84148276","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-G81IJKch8SQwK9R4HIz5ocnmfNcxwBTWbSlQbmYXITOZgkK0WbysNrfGChxVgqUlC0Oa5sNfwz6erDN1Z2sImQ==","shasum":"902631774f585bfb5a9297e1e6d2bf3e89691621","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@m2d/math/-/math-0.0.4.tgz","fileCount":5,"unpackedSize":17050,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmath@0.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQDnNps/zDsW1L1XzWoXFP1/Q5DE80VGwT4rF/YzqvDSswIga+5eiPLMMKni7GA+tWGhMFyIgAvX8wGjcQnKwSv/vTc="}],"size":5418},"_npmUser":{"name":"anonymous","email":"mayank.srmu@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mayank.srmu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/math_0.0.4_1744127700468_0.1393328961601501"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-04-08T15:55:00.660Z","publish_time":1744127700660,"_source_registry_name":"default","contributors":[]},"0.0.5":{"name":"@m2d/math","author":{"name":"Mayank Kumar Chaudhari","url":"https://mayank-chaudhari.vercel.app"},"private":false,"version":"0.0.5","description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","license":"MPL-2.0","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/md2docx/math.git"},"bugs":{"url":"https://github.com/md2docx/math/issues"},"homepage":"https://github.com/md2docx/math/#readme","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c","clean":"rm -rf dist","dev":"tsup --watch && tsc -p tsconfig-build.json -w","typecheck":"tsc --noEmit","lint":"eslint src/","lint:fix":"eslint src/ --fix","test":"vitest run --coverage"},"devDependencies":{"@repo/eslint-config":"workspace:*","@repo/typescript-config":"workspace:*","@testing-library/react":"^16.3.0","@types/node":"^22.15.19","@types/react":"^19.1.4","@types/react-dom":"^19.1.5","@unified-latex/unified-latex-types":"^1.8.0","@vitejs/plugin-react":"^4.4.1","@vitest/coverage-v8":"^3.1.4","docx":"^9.5.0","esbuild-plugin-rdi":"^0.0.0","jsdom":"^26.1.0","remark-parse":"^11.0.0","tsup":"^8.5.0","typescript":"^5.8.3","unified":"^11.0.5","vite-tsconfig-paths":"^5.1.4","vitest":"^3.1.4"},"dependencies":{"@m2d/core":"^1.0.1","latex-math":"^0.0.2"},"peerDependencies":{"docx":"^9.3.0","remark-math":"^6.0.0"},"funding":[{"type":"github","url":"https://github.com/sponsors/md2docx"},{"type":"github","url":"https://github.com/sponsors/mayank1513"}],"keywords":["math","latex","math expressions","math plugin","markdown-to-docx","mdast2docx","markdown","mdast","docx","ms-word","text-processing","export","document generator","typescript","remark","unified","open-source","seamless integration","automation","web-development","rich text","mayank1513"],"_id":"@m2d/math@0.0.5","gitHead":"0fd5a7d053c11fd7ced0d143fe969bcd02bd1f1c","_nodeVersion":"20.19.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-PH/Z08C1zDYCjMPePIdt3aGS8I+JmL8vWlu0u6eAFgYGv7kiMvSJmve2tHAV5BToy/E4Fr+fXmxEmw2b29zyyw==","shasum":"55d4c41abed74a80f60c3efaa0ff2ab0660ffad5","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@m2d/math/-/math-0.0.5.tgz","fileCount":5,"unpackedSize":17029,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmath@0.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDaVpXqkQFSq88PMDvRwW/Rk+WsfvMS96PBnzFRokGIhwIhAKgo/78aNmvYXflDXkgUta0LP3gRVBJeeXZE6JKRsUrJ"}],"size":5425},"_npmUser":{"name":"anonymous","email":"mayank.srmu@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mayank.srmu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/math_0.0.5_1747713644448_0.14128524173072843"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-05-20T04:00:44.643Z","publish_time":1747713644643,"_source_registry_name":"default","contributors":[]},"0.0.6":{"name":"@m2d/math","author":{"name":"Mayank Kumar Chaudhari","url":"https://mayank-chaudhari.vercel.app"},"private":false,"version":"0.0.6","description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","license":"MPL-2.0","main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","repository":{"type":"git","url":"git+https://github.com/md2docx/math.git"},"bugs":{"url":"https://github.com/md2docx/math/issues"},"homepage":"https://github.com/md2docx/math/#readme","sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c","clean":"rm -rf dist","dev":"tsup --watch && tsc -p tsconfig-build.json -w","typecheck":"tsc --noEmit","lint":"eslint src/","lint:fix":"eslint src/ --fix","test":"vitest run --coverage"},"devDependencies":{"@repo/eslint-config":"workspace:*","@repo/typescript-config":"workspace:*","@testing-library/react":"^16.3.0","@types/node":"^22.15.30","@types/react":"^19.1.6","@types/react-dom":"^19.1.6","@unified-latex/unified-latex-types":"^1.8.0","@vitejs/plugin-react":"^4.5.1","@vitest/coverage-v8":"^3.2.2","docx":"^9.5.0","esbuild-plugin-rdi":"^0.0.0","jsdom":"^26.1.0","remark-parse":"^11.0.0","tsup":"^8.5.0","typescript":"^5.8.3","unified":"^11.0.5","vite-tsconfig-paths":"^5.1.4","vitest":"^3.2.2"},"dependencies":{"@m2d/core":"^1.3.4","latex-math":"^0.0.2"},"peerDependencies":{"docx":"^9.3.0","remark-math":"^6.0.0"},"funding":[{"type":"github","url":"https://github.com/sponsors/md2docx"},{"type":"github","url":"https://github.com/sponsors/mayank1513"}],"keywords":["math","latex","math expressions","math plugin","markdown-to-docx","mdast2docx","markdown","mdast","docx","ms-word","text-processing","export","document generator","typescript","remark","unified","open-source","seamless integration","automation","web-development","rich text","mayank1513"],"_id":"@m2d/math@0.0.6","gitHead":"5ebe06c10f07ae842c7b0ce9c30b45d15a9a63da","_nodeVersion":"20.19.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-KEmCT6UXUiBZVt7Rp6XDq4nPjrs1LM7J3bJA8/MphyEaIRL8mYyUC/3pKVqzNd4Pf9+/DwarWdON1VLwA6wKsg==","shasum":"2a21641309b987b8affeeba6b9b9956692642d58","tarball":"http://123.232.10.234:8212/nexus/content/groups/npm-public/@m2d/math/-/math-0.0.6.tgz","fileCount":5,"unpackedSize":17059,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmath@0.0.6","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCe3sC1ub2yD5u/1ewSgvh4MvVvOJ54mhZgzlf5C+atYwIhAOI4fyYaOaJRwEZaT7xYKF7JT7sN+JCRk6c6oLQouowq"}],"size":5441},"_npmUser":{"name":"anonymous","email":"mayank.srmu@gmail.com"},"directories":{},"maintainers":[{"name":"anonymous","email":"mayank.srmu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/math_0.0.6_1750131124326_0.8461174059115042"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2025-06-17T03:32:04.493Z","publish_time":1750131124493,"_source_registry_name":"default","contributors":[]}},"dist-tags":{"latest":"0.0.6"},"name":"@m2d/math","time":{"created":"2025-03-23T12:58:49.163Z","modified":"2025-08-01T02:00:20.825Z","0.0.0":"2025-03-23T12:55:19.526Z","0.0.1":"2025-03-24T11:47:11.075Z","0.0.2":"2025-03-24T13:15:10.602Z","0.0.3":"2025-03-26T02:25:59.830Z","0.0.4":"2025-04-08T15:55:00.660Z","0.0.5":"2025-05-20T04:00:44.643Z","0.0.6":"2025-06-17T03:32:04.493Z"},"readme":"# `@m2d/math` <img src=\"https://raw.githubusercontent.com/mayank1513/mayank1513/main/popper.png\" height=\"40\"/>\n\n[![test](https://github.com/md2docx/math/actions/workflows/test.yml/badge.svg)](https://github.com/md2docx/math/actions/workflows/test.yml) [![codecov](https://codecov.io/gh/md2docx/math/graph/badge.svg)](https://codecov.io/gh/md2docx/math) [![Version](https://img.shields.io/npm/v/@m2d/math?color=green)](https://www.npmjs.com/package/@m2d/math) ![Downloads](https://img.shields.io/npm/d18m/@m2d/math) ![Bundle Size](https://img.shields.io/bundlephobia/minzip/@m2d/math)\n\n> A plugin that transforms LaTeX-style math (inline and block) into DOCX-compatible equations using docx.\n\n> This package expects that the math nodes have already been extracted using `remark-math` plugin.\n\n---\n\n## 📦 Installation\n\n```bash\nnpm install @m2d/math\n```\n\n```bash\npnpm add @m2d/math\n```\n\n```bash\nyarn add @m2d/math\n```\n\n---\n\n## 🚀 Overview\n\nThe `@m2d/math` plugin for [`mdast2docx`](https://github.com/mayankchaudhari/mdast2docx) enables support for **LaTeX math rendering** in DOCX exports. It parses inline and block-level math expressions written in LaTeX syntax and converts them into proper Word-compatible Math elements using the `docx` library.\n\n> Supports superscripts, subscripts, fractions, radicals, summations, symbols, and more.\n\n---\n\n## ✨ Features\n\n- Parses LaTeX-style math expressions\n- Converts math to `docx.MathRun`, `docx.MathFraction`, `docx.MathRadical`, etc.\n- Supports inline and block math (`$...$`, `$$...$$`)\n- Supports standard math macros like `\\frac`, `\\sqrt`, `\\sum`, `\\alpha`, and many others\n- Handles superscripts (`^`) and subscripts (`_`) intelligently\n- Gracefully ignores unsupported macros like `\\left`, `\\right`, etc.\n\n---\n\n## 🛠️ Usage\n\n```ts\nimport { toDocx } from \"@m2d/core\";\nimport { mathPlugin } from \"@m2d/math\";\n\nconst plugins = [mathPlugin()];\n\nconst buffer = await toDocx(mdastTree, {\n  plugins,\n});\n```\n\n---\n\n## 🧪 Example\n\n### Input Markdown (via MDAST)\n\n```md\nThis is inline math: $E = mc^2$\n\n$$\n\\frac{a^2 + b^2}{c^2} = 1\n$$\n```\n\n### Output DOCX\n\n- Inline math (`$E = mc^2$`) → `E = mc²` as a Word MathRun.\n- Block math renders as full equation paragraphs.\n\n---\n\n## ⚙️ Internals\n\n- Uses [`latex-math`](https://www.npmjs.com/package/latex-math) to parse LaTeX math AST.\n- Converts LaTeX nodes to `docx.MathRun[]` elements.\n- Supports common math macros with fallback to Unicode symbols via an internal symbol map.\n- Integrates seamlessly with `@m2d/core`.\n\n---\n\n## 🧩 Supported Macros\n\nIncludes (but not limited to):\n\n```\n\\frac, \\sqrt, \\sum, \\int, \\alpha, \\beta, \\theta, \\leq, \\geq, \\neq, \\infty, \\cdot\n```\n\n---\n\n## **⚠️ Limitations**\n\n- Does not support full LaTeX environments (`\\begin{align}`, etc.)\n- Complex expressions may need pre-processing\n- Does not render styled math (`\\textcolor`, etc.)\n\n---\n\n## ⭐ Support Us\n\nIf you find this useful:\n\n- ⭐ Star [mdast2docx](https://github.com/tiny-md/mdast2docx) on GitHub\n- ❤️ Consider [sponsoring](https://github.com/sponsors/mayank1513)\n\n---\n\n## 🧾 License\n\nMIT © [Mayank Chaudhari](https://github.com/mayankchaudhari)\n\n---\n\n<p align=\"center\">Made with 💖 by <a href=\"https://mayank-chaudhari.vercel.app\" target=\"_blank\">Mayank Kumar Chaudhari</a></p>","users":{}}