{"_id":"@m2d/math","_rev":"7-75007fcf986333d89fd8ef983526e73a","name":"@m2d/math","dist-tags":{"latest":"0.0.6"},"versions":{"0.0.0":{"name":"@m2d/math","version":"0.0.0","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"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/math@0.0.0","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/tiny-md/mdast2docx/tree/main/m2d/math","bugs":{"url":"https://github.com/tiny-md/mdast2docx/issues"},"dist":{"shasum":"4948ac81e57d8f0d312c0c116a30862ceb272920","tarball":"https://registry.npmjs.org/@m2d/math/-/math-0.0.0.tgz","fileCount":5,"integrity":"sha512-EXcGiC0pYsKSqeNyJjcklKkUM+ZwR/MizmcRRcm8UJd9NyiGwR/3jNJ8b0Xkff/cEYqAjI3G4uEFvHC88HRgyw==","signatures":[{"sig":"MEQCIFU9lhRs4pWyb1HNZqNLkFZH+tBmv9yydfc3a1OJmkEiAiAWvhMrwgQY01KWOzlkSK7LPN8+i1HC7Z9oKyli/k3Qig==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmath@0.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":16438},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"funding":[{"url":"https://github.com/sponsors/tiny-md","type":"github"},{"url":"https://github.com/sponsors/mayank1513","type":"github"}],"gitHead":"589082076cc78818defcacde47f8db518faa717f","private":false,"scripts":{"dev":"tsup --watch && tsc -p tsconfig-build.json -w","lint":"eslint src/","test":"vitest run --coverage","build":"tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c","clean":"rm -rf dist","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mayank1513","email":"mayank.srmu@gmail.com"},"repository":{"url":"git+https://github.com/tiny-md/mdast2docx.git","type":"git"},"_npmVersion":"10.8.2","description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.0","dependencies":{"latex-math":"^0.0.1"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","vitest":"^3.0.9","@m2d/core":"workspace:*","typescript":"^5.8.2","@types/node":"^22.13.11","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*","@unified-latex/unified-latex-types":"^1.8.0"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/math_0.0.0_1742734519368_0.7125971866881327","host":"s3://npm-registry-packages-npm-production"}},"0.0.1":{"name":"@m2d/math","version":"0.0.1","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"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/math@0.0.1","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/tiny-md/mdast2docx/tree/main/m2d/math","bugs":{"url":"https://github.com/tiny-md/mdast2docx/issues"},"dist":{"shasum":"eac3bb54671a760dd34ac219bd8997dd505af6b7","tarball":"https://registry.npmjs.org/@m2d/math/-/math-0.0.1.tgz","fileCount":2,"integrity":"sha512-p4ySsaSaFNGuaVPrjKi/9wpIPqhDpMGVjko0yJrXtPLbHNWTw0yD7CjkS8hqNL6BfvnHXgsezefrMghaXZSvVg==","signatures":[{"sig":"MEUCID1QAOFPFJl4uANFG3Mn5t9Xcb8qUHzxBpGBG5te8brMAiEAg5oW1LQlSnuESYC8Rbh2VIAsSxeEkPFh9tPTrCtG6W4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmath@0.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":5209},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"funding":[{"url":"https://github.com/sponsors/tiny-md","type":"github"},{"url":"https://github.com/sponsors/mayank1513","type":"github"}],"gitHead":"5f2a278575851f8e08ab6a870dec363247625aa5","private":false,"scripts":{"dev":"tsup --watch && tsc -p tsconfig-build.json -w","lint":"eslint src/","test":"vitest run --coverage","build":"tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c","clean":"rm -rf dist","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mayank1513","email":"mayank.srmu@gmail.com"},"repository":{"url":"git+https://github.com/tiny-md/mdast2docx.git","type":"git"},"_npmVersion":"10.8.2","description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.0","dependencies":{"latex-math":"^0.0.2"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.4.0","vitest":"^3.0.9","@m2d/core":"latest","typescript":"^5.8.2","@types/node":"^22.13.12","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*","@unified-latex/unified-latex-types":"^1.8.0"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/math_0.0.1_1742816830892_0.491644732329656","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@m2d/math","version":"0.0.2","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"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/math@0.0.2","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/tiny-md/mdast2docx/tree/main/m2d/math","bugs":{"url":"https://github.com/tiny-md/mdast2docx/issues"},"dist":{"shasum":"308bdae2b134b2d9be7186b822a1cd0e137c0a62","tarball":"https://registry.npmjs.org/@m2d/math/-/math-0.0.2.tgz","fileCount":5,"integrity":"sha512-IxI30xsu2s/TeWwb1uNvOxyq7Lw1vsoYuhkdbedwtQG/kKzMLFIki9La6Ns0pTncax83MkHXgKiF6zZhB3n4bg==","signatures":[{"sig":"MEUCIBMZzxPufXmgZ8HjSd/a4wGac+ceCeJmcJivyZ7rvB+hAiEAoFGznQFMwMGe+dVcWSfAEzKMi4PVzCq5m2V1J9UWBy0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmath@0.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":16503},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"funding":[{"url":"https://github.com/sponsors/tiny-md","type":"github"},{"url":"https://github.com/sponsors/mayank1513","type":"github"}],"gitHead":"6bf115ecf15c9279ab334c06df639a3ad9aa474f","private":false,"scripts":{"dev":"tsup --watch && tsc -p tsconfig-build.json -w","lint":"eslint src/","test":"vitest run --coverage","build":"tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c","clean":"rm -rf dist","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mayank1513","email":"mayank.srmu@gmail.com"},"repository":{"url":"git+https://github.com/tiny-md/mdast2docx.git","type":"git"},"_npmVersion":"10.8.2","description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.0","dependencies":{"@m2d/core":"workspace:*","latex-math":"^0.0.2"},"_hasShrinkwrap":false,"devDependencies":{"docx":"^9.3.0","tsup":"^8.4.0","vitest":"^3.0.9","typescript":"^5.8.2","@types/node":"^22.13.13","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*","@unified-latex/unified-latex-types":"^1.8.0"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/math_0.0.2_1742822110380_0.5105783376673425","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@m2d/math","version":"0.0.3","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"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/math@0.0.3","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/math/#readme","bugs":{"url":"https://github.com/md2docx/math/issues"},"dist":{"shasum":"0e330aa1fcddf1873446d637b6eb868cc93cf25b","tarball":"https://registry.npmjs.org/@m2d/math/-/math-0.0.3.tgz","fileCount":5,"integrity":"sha512-n69iXWOiWCnkzxCGg1bZLM6ZcHJGswSh/FP5tgx70kKtY/vTd/TfhsCp8uJ+LAiqIUW9GloYb+UplNDyC9gqXQ==","signatures":[{"sig":"MEUCIQD5or1hC2O5uspn5YExKgHMR9aHb1YKzZfpm9wuIYfeSAIgQstcZGEIoeh2SGzFYq0pu7snOlIQHmeZNx8yRxFbVJY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmath@0.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":17052},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"funding":[{"url":"https://github.com/sponsors/md2docx","type":"github"},{"url":"https://github.com/sponsors/mayank1513","type":"github"}],"gitHead":"ab75343b5e2980545baf248753f4f52ab27df181","private":false,"scripts":{"dev":"tsup --watch && tsc -p tsconfig-build.json -w","lint":"eslint src/","test":"vitest run --coverage","build":"tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c","clean":"rm -rf dist","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mayank1513","email":"mayank.srmu@gmail.com"},"repository":{"url":"git+https://github.com/md2docx/math.git","type":"git"},"_npmVersion":"10.8.2","description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.0","dependencies":{"@m2d/core":"^0.0.3","latex-math":"^0.0.2"},"_hasShrinkwrap":false,"devDependencies":{"docx":"^9.3.0","tsup":"^8.4.0","jsdom":"^26.0.0","vitest":"^3.0.9","unified":"^11.0.5","typescript":"^5.8.2","@types/node":"^22.13.12","@types/react":"^19.0.12","remark-parse":"^11.0.0","@types/react-dom":"^19.0.4","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.0.9","vite-tsconfig-paths":"^5.1.4","@vitejs/plugin-react":"^4.3.4","@testing-library/react":"^16.2.0","@repo/typescript-config":"workspace:*","@unified-latex/unified-latex-types":"^1.8.0"},"peerDependencies":{"docx":"^9.3.0","remark-math":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/math_0.0.3_1742955959653_0.7198240242152882","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@m2d/math","version":"0.0.4","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"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/math@0.0.4","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/math/#readme","bugs":{"url":"https://github.com/md2docx/math/issues"},"dist":{"shasum":"902631774f585bfb5a9297e1e6d2bf3e89691621","tarball":"https://registry.npmjs.org/@m2d/math/-/math-0.0.4.tgz","fileCount":5,"integrity":"sha512-G81IJKch8SQwK9R4HIz5ocnmfNcxwBTWbSlQbmYXITOZgkK0WbysNrfGChxVgqUlC0Oa5sNfwz6erDN1Z2sImQ==","signatures":[{"sig":"MEUCIQDnNps/zDsW1L1XzWoXFP1/Q5DE80VGwT4rF/YzqvDSswIga+5eiPLMMKni7GA+tWGhMFyIgAvX8wGjcQnKwSv/vTc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmath@0.0.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":17050},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"funding":[{"url":"https://github.com/sponsors/md2docx","type":"github"},{"url":"https://github.com/sponsors/mayank1513","type":"github"}],"gitHead":"032162570744c0409925f0963846820b84148276","private":false,"scripts":{"dev":"tsup --watch && tsc -p tsconfig-build.json -w","lint":"eslint src/","test":"vitest run --coverage","build":"tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c","clean":"rm -rf dist","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mayank1513","email":"mayank.srmu@gmail.com"},"repository":{"url":"git+https://github.com/md2docx/math.git","type":"git"},"_npmVersion":"10.8.2","description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.0","dependencies":{"@m2d/core":"^0.0.4","latex-math":"^0.0.2"},"_hasShrinkwrap":false,"devDependencies":{"docx":"^9.3.0","tsup":"^8.4.0","jsdom":"^26.0.0","vitest":"^3.1.1","unified":"^11.0.5","typescript":"^5.8.3","@types/node":"^22.14.0","@types/react":"^19.1.0","remark-parse":"^11.0.0","@types/react-dom":"^19.1.1","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.1.1","vite-tsconfig-paths":"^5.1.4","@vitejs/plugin-react":"^4.3.4","@testing-library/react":"^16.3.0","@repo/typescript-config":"workspace:*","@unified-latex/unified-latex-types":"^1.8.0"},"peerDependencies":{"docx":"^9.3.0","remark-math":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/math_0.0.4_1744127700468_0.1393328961601501","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@m2d/math","version":"0.0.5","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"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/math@0.0.5","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/math/#readme","bugs":{"url":"https://github.com/md2docx/math/issues"},"dist":{"shasum":"55d4c41abed74a80f60c3efaa0ff2ab0660ffad5","tarball":"https://registry.npmjs.org/@m2d/math/-/math-0.0.5.tgz","fileCount":5,"integrity":"sha512-PH/Z08C1zDYCjMPePIdt3aGS8I+JmL8vWlu0u6eAFgYGv7kiMvSJmve2tHAV5BToy/E4Fr+fXmxEmw2b29zyyw==","signatures":[{"sig":"MEYCIQDaVpXqkQFSq88PMDvRwW/Rk+WsfvMS96PBnzFRokGIhwIhAKgo/78aNmvYXflDXkgUta0LP3gRVBJeeXZE6JKRsUrJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmath@0.0.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":17029},"main":"./dist/index.js","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"funding":[{"url":"https://github.com/sponsors/md2docx","type":"github"},{"url":"https://github.com/sponsors/mayank1513","type":"github"}],"gitHead":"0fd5a7d053c11fd7ced0d143fe969bcd02bd1f1c","private":false,"scripts":{"dev":"tsup --watch && tsc -p tsconfig-build.json -w","lint":"eslint src/","test":"vitest run --coverage","build":"tsup && tsc -p tsconfig-build.json && gzip -c dist/index.js | wc -c","clean":"rm -rf dist","lint:fix":"eslint src/ --fix","typecheck":"tsc --noEmit"},"_npmUser":{"name":"mayank1513","email":"mayank.srmu@gmail.com"},"repository":{"url":"git+https://github.com/md2docx/math.git","type":"git"},"_npmVersion":"10.8.2","description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.1","dependencies":{"@m2d/core":"^1.0.1","latex-math":"^0.0.2"},"_hasShrinkwrap":false,"devDependencies":{"docx":"^9.5.0","tsup":"^8.5.0","jsdom":"^26.1.0","vitest":"^3.1.4","unified":"^11.0.5","typescript":"^5.8.3","@types/node":"^22.15.19","@types/react":"^19.1.4","remark-parse":"^11.0.0","@types/react-dom":"^19.1.5","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.1.4","vite-tsconfig-paths":"^5.1.4","@vitejs/plugin-react":"^4.4.1","@testing-library/react":"^16.3.0","@repo/typescript-config":"workspace:*","@unified-latex/unified-latex-types":"^1.8.0"},"peerDependencies":{"docx":"^9.3.0","remark-math":"^6.0.0"},"_npmOperationalInternal":{"tmp":"tmp/math_0.0.5_1747713644448_0.14128524173072843","host":"s3://npm-registry-packages-npm-production"}},"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":"https://registry.npmjs.org/@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"}]},"_npmUser":{"name":"mayank1513","email":"mayank.srmu@gmail.com"},"directories":{},"maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/math_0.0.6_1750131124326_0.8461174059115042"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-23T12:55:19.308Z","modified":"2025-06-17T03:32:04.899Z","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"},"bugs":{"url":"https://github.com/md2docx/math/issues"},"author":{"name":"Mayank Kumar Chaudhari","url":"https://mayank-chaudhari.vercel.app"},"license":"MPL-2.0","homepage":"https://github.com/md2docx/math/#readme","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"],"repository":{"type":"git","url":"git+https://github.com/md2docx/math.git"},"description":"Plugin to convert mathematical expressions in Markdown (MDAST) to DOCX using LaTeX-style syntax. Integrates seamlessly with mdast2docx.","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"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>\n","readmeFilename":"README.md"}