{"_id":"@m2d/mermaid","_rev":"15-169a452a88acaea05e5d93a753dee620","name":"@m2d/mermaid","dist-tags":{"alpha":"0.0.1-alpha.0","latest":"1.2.2"},"versions":{"0.0.1-alpha.0":{"name":"@m2d/mermaid","version":"0.0.1-alpha.0","keywords":["text-processing","markdown-to-docx","mdast-to-docx","mdast","markdown","md2docx","mdast2docx","plugin","converter","docx","ms-word","document-generator","document-generation","remark","unified","images","hyperlinks","footnotes","typescript","open-source","customizable","modern","seamless-integration","cutting-edge","compatibility","progressive","web-development","frontend","automation","google-sheets","generative-ai","rich-text","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@0.0.1-alpha.0","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"96a3bc175369900aec79d1fce1c6baab8ccf20d6","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-0.0.1-alpha.0.tgz","fileCount":5,"integrity":"sha512-ndxurAvPH/4AXcqiFAQbJOKabnKem1tSdkSGRfzexin6KmdJcWst+0QwTmFQgXZRPivGlcD2Mrwq3dpExLnOxw==","signatures":[{"sig":"MEQCIHkeB8iKoLDbV4NRIBK2trPg5tFwTnZHgqQjGLwIt/ZrAiBD6RMKU7A3t4MZ46lmdrPW7z76BD7inCtfwPXw8MsvWQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@0.0.1-alpha.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":10503},"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":"5d5c0ef4361eb11eabb34094a8dd794fe7c1ef66","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"[![test](https://github.com/md2docx/mermaid/actions/workflows/test.yml/badge.svg)](https://github.com/md2docx/mermaid/actions/workflows/test.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/aa896ec14c570f3bb274/maintainability)](https://code","directories":{},"sideEffects":false,"_nodeVersion":"20.19.0","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^0.0.3"},"_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.2","@types/node":"^22.14.0","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.1.1","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_0.0.1-alpha.0_1743955687862_0.7903624354018899","host":"s3://npm-registry-packages-npm-production"}},"0.0.1":{"name":"@m2d/mermaid","version":"0.0.1","keywords":["text-processing","markdown-to-docx","mdast-to-docx","mdast","markdown","md2docx","mdast2docx","plugin","converter","docx","ms-word","document-generator","document-generation","remark","unified","images","hyperlinks","footnotes","typescript","open-source","customizable","modern","seamless-integration","cutting-edge","compatibility","progressive","web-development","frontend","automation","google-sheets","generative-ai","rich-text","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@0.0.1","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"f28d2feb15cb6c6c585221dc243d3666cfeec649","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-0.0.1.tgz","fileCount":5,"integrity":"sha512-UDx8pb3DsxyMYP4FYMbdJ4vqVCRYYWQLT3PyRSJbOQwFbed50N2roQVGwMXCPWtsYztUZR48Jd07YM3dl1qW2Q==","signatures":[{"sig":"MEQCIA9ZbXN3MKlTtN00SRDC8TCpTMgzzdoeFXCNgqqusdXuAiAkoy8ZrGjwGOVR6xMK/Eyqmf0bFQHpZD1zLV0rTXP/UQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@0.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7297},"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":"ee7105ac2844edc9bc04f4aba847588497c0a0ac","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"[![test](https://github.com/md2docx/mermaid/actions/workflows/test.yml/badge.svg)](https://github.com/md2docx/mermaid/actions/workflows/test.yml) [![Maintainability](https://api.codeclimate.com/v1/badges/aa896ec14c570f3bb274/maintainability)](https://code","directories":{},"sideEffects":false,"_nodeVersion":"20.19.0","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^0.0.4"},"_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","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.1.1","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_0.0.1_1744043415162_0.741804414489057","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@m2d/mermaid","version":"0.0.2","keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@0.0.2","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"ed0d2ed7692d49320e934b359a71a1478b6ee0cc","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-0.0.2.tgz","fileCount":5,"integrity":"sha512-ZZon45Ctm6DFqwmn5xFJZi7pzL5KMr3+Rz8eASEg9YLd48dG0nDQ7q3hRXcbesNrLDxa9o8zcltn7+YRtwNjCg==","signatures":[{"sig":"MEUCIGzyewu9zddx6t9HCovDmv6WRR3Nhis51Kkdiqsz14wjAiEAz/gtmHEHtKHzR9V9FiaqSUHjdHlyeScBfL/ZKhhhe+Q=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@0.0.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7589},"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":"490f2d610085f34bd1b5a10e08534207b61f9548","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.0","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^0.0.4"},"_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","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.1.1","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_0.0.2_1744044192121_0.7508389729363456","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@m2d/mermaid","version":"0.0.3","keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@0.0.3","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"4506b1a0881fccc6fdb14afa5c7b03bfc695ad44","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-0.0.3.tgz","fileCount":5,"integrity":"sha512-iBjacHv/UTSb/wkfsToralVAw4Eke3gxOXtLtYUuL7n5nN25Nd8r67vqO4nrX76vAro1zglYbihVMJRh2fDRUA==","signatures":[{"sig":"MEQCIBqIEFw/jb82AvudevvBR5urMgNTQOEAN4v4x7UtJOTtAiBRbsyUm5y8v6svh5j6trdp+g3e05UXqynsXu02As/B2w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@0.0.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":7641},"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":"615bdde26fd73c60ff5e30211ebeaf2316c3391a","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.0","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^0.0.5"},"_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.1","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.1.1","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_0.0.3_1744440477009_0.0700556291062231","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@m2d/mermaid","version":"1.0.0","keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@1.0.0","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"a22368b26864c064f5f134e18960255cd08f315d","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-1.0.0.tgz","fileCount":5,"integrity":"sha512-heNcRV8w21cVmvmzdesBAdQgwmEhamVWEjY/6OrssizDC/S2x3TQEEk4h9iXJLfdY1gG8RUc8Zl80RMsJDuBBQ==","signatures":[{"sig":"MEQCIDUByN7MeK30R1bwpumqICz4O5PPyOnXUlsd7Qc24Bc4AiAGj36KxrRmN/2/7LLEKrWhorQk2Q4oqQYVTa5m6ERVRA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@1.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8201},"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":"778b33a286e73e766d0fff82d5933d6fd7eda535","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.1","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^1.0.0"},"_hasShrinkwrap":false,"devDependencies":{"docx":"^9.5.0","tsup":"^8.5.0","jsdom":"^26.1.0","vitest":"^3.1.3","unified":"^11.0.5","typescript":"^5.8.3","@types/node":"^22.15.19","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.1.3","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_1.0.0_1747641436061_0.7025963268388475","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@m2d/mermaid","version":"1.0.1","keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@1.0.1","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"bb05fbdf6f8c47e54aaa50ac4b39a2137c3e5b03","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-1.0.1.tgz","fileCount":5,"integrity":"sha512-BJp7DTGW+RukAExEbniVRvRj4j4N8z03Swto3yBBukb4t//ZzXlL5GWRi2HXzDKbci5A1t3KJ1bXgM8nsg7Row==","signatures":[{"sig":"MEQCICuP2YvpynqoPiuHWZBMLdOexhlzp22iVDWnb/jY4gE2AiATWbzTlFJmZMWPO6ZryV9c6i1FdWq9SMTXVkCW8IDxLw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@1.0.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8291},"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":"58379be39ca4c38db3ac0cedb0fbbe3c7257b8bb","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.1","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^1.0.1"},"_hasShrinkwrap":false,"devDependencies":{"docx":"^9.5.0","tsup":"^8.5.0","jsdom":"^26.1.0","vitest":"^3.1.3","unified":"^11.0.5","typescript":"^5.8.3","@types/node":"^22.15.19","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.1.3","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_1.0.1_1747652317959_0.4005788341506227","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@m2d/mermaid","version":"1.1.0","keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@1.1.0","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"526acdfd73e989b6579ea46921866979536ad66f","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-1.1.0.tgz","fileCount":5,"integrity":"sha512-eamZLPuGhKOS625UwwHtmSmUWoQgwIza7vTWj+qScyj+SSWwYfzXRtOgeUNdzvtto523NwsFXW0hZQIY4cqMmQ==","signatures":[{"sig":"MEQCIB8KhBYWFde4X20FdaqjiW/wUc5k50JcK5SOnV1c9f7IAiBZ9m1L1tCfNcl9fbtGi6ipez9kj87bLUnh3/w77l5qqg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@1.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8617},"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":"80bedd53ba56f028228f6a580e1199f07d07f59b","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.1","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^1.1.4"},"_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.27","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.1.4","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_1.1.0_1748599347612_0.04170247584191933","host":"s3://npm-registry-packages-npm-production"}},"1.1.1":{"name":"@m2d/mermaid","version":"1.1.1","keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@1.1.1","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"c97f79aef2c671fbd0b322451d850b1e15eb378b","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-1.1.1.tgz","fileCount":5,"integrity":"sha512-D389519l0Q+LfckFHpqqRxUEf1pTxJ3HOqk2RKMhRkKF1kgAXM2AmpEDPLwcTMe4nxYT+i7/XJbHWU94j29rcA==","signatures":[{"sig":"MEUCIQCdLMeMtAzzgDJJ8B3kLm+KV63lNjG9Y8cPgt5aQrrZzwIgBT1YySPJuqQPcLXMnyE7gN6KuARICvVfTHPSfqaNCog=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@1.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8641},"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":"33aca0680ca72f85305a7e5249c7a7c8cfef132d","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.1","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^1.1.4"},"_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.27","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.1.4","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_1.1.1_1748601986244_0.6435260624052139","host":"s3://npm-registry-packages-npm-production"}},"1.1.2":{"name":"@m2d/mermaid","version":"1.1.2","keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@1.1.2","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"379f9efe512121041da3b28ea8b6cb0227d92b42","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-1.1.2.tgz","fileCount":5,"integrity":"sha512-X6JUD+75q1dH5VGei/mzRrbSxIO84q8v7Hzyr0TidvRkdl/nQ9xgl6OVVrIJTIBv2y7GDcUy5ooB6TvBtmCUwQ==","signatures":[{"sig":"MEUCIAz6EEMfhKAuQL9S31gXUi/4yR+2Lz/ej8HP7Z6ohHRxAiEAppwTT8gHnqgfdKxbYF5ZTlRxr2uhdvO8SyOTSXH8Y64=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@1.1.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8899},"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":"43c6e24ac2bcc2d1963cd15bbfe825450a473384","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.1","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^1.1.6"},"_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.27","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.1.4","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_1.1.2_1748607935971_0.6029133996170231","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@m2d/mermaid","version":"1.1.3","keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@1.1.3","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"939ec767ce3015d91bfd77d887c050f7067f6103","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-1.1.3.tgz","fileCount":5,"integrity":"sha512-51HldwChnsA0SxkbXeERXyQ9A6/WwCLzdi73j32gXXIsW3cOva95dxQoYkNDOqvPJt/GHm7WnWJH73M1YCGz/w==","signatures":[{"sig":"MEQCIDgYsFFZLaCUKiOO55chGcNcJyzEitI7pic320gOZDmdAiA58upbbbJX6WldEWHOEuOTJhzggImgkuEAxCMY/6RJxQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@1.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":8900},"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":"05b860a42a168c0918aeb7ab989d37b42039754e","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.1","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^1.1.6"},"_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.27","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.1.4","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_1.1.3_1748662749144_0.7445825258510381","host":"s3://npm-registry-packages-npm-production"}},"1.1.4":{"name":"@m2d/mermaid","version":"1.1.4","keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@1.1.4","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"3c51ca0942429f89f9c9fc7248aac857deaa6a2b","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-1.1.4.tgz","fileCount":5,"integrity":"sha512-EVjR4jhSPC+YAWfqC1fY6rmjpwWoIMtFYrxeoOb9VSDxAxOctfTKKv9chlg/JqhUBMM5Nds/yeqIDVx6IMPHhw==","signatures":[{"sig":"MEUCIQC2587BkSpUpG9gY59Uu5wf0aIGNvOTJD1Xnns3DBCzyQIgI/hF81hJi4858H5GOsJyUrE2J5RKqJjghQfyObwt/AU=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@1.1.4","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":11658},"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":"2915783da0c994c8e352f8990d8f774cd6fe44e3","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.1","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^1.2.0"},"_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.29","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.1.4","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_1.1.4_1748787856341_0.6761009638168327","host":"s3://npm-registry-packages-npm-production"}},"1.1.5":{"name":"@m2d/mermaid","version":"1.1.5","keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@1.1.5","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"ca87eabdaf51067b7121a263441706020703f7c6","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-1.1.5.tgz","fileCount":5,"integrity":"sha512-yt5NGfk0r0Kaw0p3VS69e7dozrDmf1B7f0hyupV4XeFM4XOkDc4eseQ4gBbRf4JpqITkldlzB6vXeMRRXInhXw==","signatures":[{"sig":"MEUCIQDQ5RgvfR/oLal2lpuhLqdL+sAAhlQmsq7CoYxiD6RdDAIgfoHxTTkOYQVgXg2zC+9K4Bc1AalVAOYeCsyDWVtDk3c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@1.1.5","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":11658},"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":"89186a3cccc020fde39c9ec925a1f2dfc964e5cd","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.1","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^1.3.4"},"_hasShrinkwrap":false,"devDependencies":{"docx":"^9.5.0","tsup":"^8.5.0","jsdom":"^26.1.0","vitest":"^3.2.2","unified":"^11.0.5","typescript":"^5.8.3","@types/node":"^22.15.30","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.2.2","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_1.1.5_1749206781737_0.4742430911027906","host":"s3://npm-registry-packages-npm-production"}},"1.2.0":{"name":"@m2d/mermaid","version":"1.2.0","keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@1.2.0","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"a31aabf407e95a66625aa040baa2f12d227dedba","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-1.2.0.tgz","fileCount":5,"integrity":"sha512-jeeWlgxLDKntMTF2ocntm7NStmJNde1B2nZ2r/J6uOkDfjWex5bM+sGJA2E7EzWvfZO8CA4tIKsH460wwmgHgw==","signatures":[{"sig":"MEYCIQCPLk+tnBkfgZTeDTM+sXWz5HEnh8Snoqs37za84wQ/uAIhAOfbM+019pURawfSflZLuf4LINhmE52+ig/YJFbXfxVJ","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@1.2.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12028},"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":"39a4f6f755fc16a4a99c9121c4b5bcf9cb13da3f","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.2","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^1.4.1"},"_hasShrinkwrap":false,"devDependencies":{"docx":"^9.5.0","tsup":"^8.5.0","jsdom":"^26.1.0","vitest":"^3.2.3","unified":"^11.0.5","typescript":"^5.8.3","@types/node":"^24.0.1","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.2.3","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_1.2.0_1749705933752_0.7456037169077216","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@m2d/mermaid","version":"1.2.1","keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"author":{"url":"https://mayank-chaudhari.vercel.app","name":"Mayank Kumar Chaudhari"},"license":"MPL-2.0","_id":"@m2d/mermaid@1.2.1","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"homepage":"https://github.com/md2docx/mermaid/#readme","bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"dist":{"shasum":"d8ef18c09eacaf55b4685187dfcd0f431f8031a5","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-1.2.1.tgz","fileCount":5,"integrity":"sha512-DNqDofLSyYp+YIbYApxjb+OWpyZP6kqNr31tBDgIp+k5roA7wHGI6QfiCn1mpgphiR4meIeihOlIOUbo93p6/Q==","signatures":[{"sig":"MEYCIQCUlhqVh2rYYiaOAOfKarufF9iul8mSfe6wgnGpYUaU/gIhAJ5iPLKGfQwfpdY32gidgdGnmcz0mcPM/ESu8eA+E27r","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@1.2.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":12225},"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":"6f12c5fa5116790241e834e18c4e6227de61a64c","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/mermaid.git","type":"git"},"_npmVersion":"10.8.2","description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.2","dependencies":{"mermaid":"^11.6.0","@m2d/core":"^1.4.1"},"_hasShrinkwrap":false,"devDependencies":{"docx":"^9.5.0","tsup":"^8.5.0","jsdom":"^26.1.0","vitest":"^3.2.3","unified":"^11.0.5","typescript":"^5.8.3","@types/node":"^24.0.1","remark-parse":"^11.0.0","esbuild-plugin-rdi":"^0.0.0","@repo/eslint-config":"workspace:*","@vitest/coverage-v8":"^3.2.3","vite-tsconfig-paths":"^5.1.4","@repo/typescript-config":"workspace:*"},"peerDependencies":{"docx":"^9.3.0"},"_npmOperationalInternal":{"tmp":"tmp/mermaid_1.2.1_1749706287960_0.13462775956748185","host":"s3://npm-registry-packages-npm-production"}},"1.2.2":{"name":"@m2d/mermaid","author":{"name":"Mayank Kumar Chaudhari","url":"https://mayank-chaudhari.vercel.app"},"private":false,"version":"1.2.2","description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","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/mermaid.git"},"bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"homepage":"https://github.com/md2docx/mermaid/#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:*","@types/node":"^24.0.1","@vitest/coverage-v8":"^3.2.3","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.3"},"dependencies":{"@m2d/core":"^1.4.1","mermaid":"^11.6.0"},"peerDependencies":{"docx":"^9.3.0"},"funding":[{"type":"github","url":"https://github.com/sponsors/md2docx"},{"type":"github","url":"https://github.com/sponsors/mayank1513"}],"keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"_id":"@m2d/mermaid@1.2.2","gitHead":"93a7a774e6e214a43db3b494a245aa84f9b8aa3f","_nodeVersion":"20.19.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-UEz1BSJOp6i23UzME7yh5si/ndiMvuBvt3QLjOPj8ZGFfU6hf0/GdDi3SWl9pc9h0jvhzA/kXq03Tc1b2lKxnA==","shasum":"88754426be2153da07e3b2425b72169d50c3ef6b","tarball":"https://registry.npmjs.org/@m2d/mermaid/-/mermaid-1.2.2.tgz","fileCount":5,"unpackedSize":12267,"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@m2d%2fmermaid@1.2.2","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIEIj853BVKsUGoQSgxBy6WIpYNf91V5xL722r73dzqT8AiBf00OdUrUQo5U02Pc4ZDM+u5PCVrqPwTWkgsbTxM9ZIw=="}]},"_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/mermaid_1.2.2_1749706730418_0.9643964513448982"},"_hasShrinkwrap":false}},"time":{"created":"2025-04-06T16:08:07.789Z","modified":"2025-06-12T05:38:51.018Z","0.0.1-alpha.0":"2025-04-06T16:08:08.053Z","0.0.1":"2025-04-07T16:30:15.330Z","0.0.2":"2025-04-07T16:43:12.331Z","0.0.3":"2025-04-12T06:47:57.210Z","1.0.0":"2025-05-19T07:57:16.227Z","1.0.1":"2025-05-19T10:58:38.133Z","1.1.0":"2025-05-30T10:02:27.841Z","1.1.1":"2025-05-30T10:46:26.399Z","1.1.2":"2025-05-30T12:25:36.132Z","1.1.3":"2025-05-31T03:39:09.352Z","1.1.4":"2025-06-01T14:24:16.546Z","1.1.5":"2025-06-06T10:46:21.916Z","1.2.0":"2025-06-12T05:25:33.926Z","1.2.1":"2025-06-12T05:31:28.139Z","1.2.2":"2025-06-12T05:38:50.587Z"},"bugs":{"url":"https://github.com/md2docx/mermaid/issues"},"author":{"name":"Mayank Kumar Chaudhari","url":"https://mayank-chaudhari.vercel.app"},"license":"MPL-2.0","homepage":"https://github.com/md2docx/mermaid/#readme","keywords":["mermaid","mindmap","markdown","mdast","mdast-to-docx","markdown-to-docx","md2docx","mdast2docx","docx","docx-generator","document-generation","document-conversion","svg-diagram","code-block","diagram-plugin","remark-plugin","unified-plugin","typescript","plugin","open-source","m2d","mayank1513"],"repository":{"type":"git","url":"git+https://github.com/md2docx/mermaid.git"},"description":"Enhance Markdown-to-DOCX conversion with Mermaid and mindmap diagram support using this plugin for @m2d/core. Converts code blocks into SVG images with customizable Mermaid config.","maintainers":[{"name":"mayank1513","email":"mayank.srmu@gmail.com"}],"readme":"# `@m2d/mermaid`\n\n[![Test](https://github.com/md2docx/mermaid/actions/workflows/test.yml/badge.svg)](https://github.com/md2docx/mermaid/actions/workflows/test.yml)\n[![Maintainability](https://api.codeclimate.com/v1/badges/aa896ec14c570f3bb274/maintainability)](https://codeclimate.com/github/md2docx/mermaid/maintainability)\n[![Code Coverage](https://codecov.io/gh/md2docx/mermaid/graph/badge.svg)](https://codecov.io/gh/md2docx/mermaid)\n[![Version](https://img.shields.io/npm/v/@m2d/mermaid.svg?colorB=green)](https://www.npmjs.com/package/@m2d/mermaid)\n[![Downloads](https://img.shields.io/npm/dm/@m2d/mermaid.svg)](https://www.npmjs.com/package/@m2d/mermaid)\n![Minzipped](https://img.shields.io/bundlephobia/minzip/@m2d/mermaid)\n\n> 🧠 A plugin for [`@m2d/core`](https://www.npmjs.com/package/@m2d/core) that transforms `mermaid`, `mmd`, and `mindmap` code blocks into high-quality inline SVGs, ready for DOCX, HTML, or future PDF export.\n> ✨ Built with caching, configurability, and AI/automation-friendly hooks in mind.\n\n---\n\n## ✨ Why `@m2d/mermaid`?\n\nThis plugin is part of the [`mdast2docx`](https://mdast2docx.vercel.app/) ecosystem — a modular pipeline to convert Markdown (via MDAST) into richly formatted documents.\n\nWhether you're using this in a generative AI pipeline, a Markdown editor, or a publishing workflow, `@m2d/mermaid` helps you render diagrams **just once**, cache the result smartly, and export it across formats.\n\n---\n\n## ⚡ Features at a Glance\n\n- ✅ Supports `mermaid`, `mmd`, and `mindmap` code blocks.\n- 🖼️ Converts diagrams into **inline SVGs** compatible with DOCX/HTML.\n- 🧠 Smart **persistent caching** via IndexedDB and **deduplication** via in-memory layer.\n- 🛠️ Fully configurable via [Mermaid config](https://mermaid.js.org/configuration.html).\n- 💥 Handles rendering quirks (e.g. mindmaps, whitespace trimming).\n- 🤖 Built-in hook to fix broken diagrams using **LLMs or custom logic**.\n- 🧩 Seamless integration with `@m2d/core` and `mdast2docx` ecosystem.\n\n---\n\n## 📦 Installation\n\n```bash\npnpm install @m2d/mermaid\n```\n\n**_or_**\n\n```bash\nyarn add @m2d/mermaid\n```\n\n**_or_**\n\n```bash\nnpm add @m2d/mermaid\n```\n\n---\n\n## 🚀 Quick Start\n\n```ts\nimport { mermaidPlugin } from \"@m2d/mermaid\";\nimport { imagePlugin } from \"@m2d/image\";\nimport { toDocx } from \"@m2d/core\";\n\nconst converter = await toDocx({\n  plugins: [mermaidPlugin(), imagePlugin()],\n});\n\nconst docxBuffer = await converter.convert(`# Flow\\n\\n\\`\\`\\`mermaid\\ngraph TD; A-->B;\\`\\`\\``);\n```\n\n✅ You can use `mindmap` or `mmd` code blocks too — the plugin handles them all.\n\n---\n\n## 🧙‍♀️ Plugin Options\n\n```ts\nmermaidPlugin({\n  mermaidConfig: {\n    theme: \"default\",\n    fontFamily: \"Arial\",\n    // See all options: https://mermaid.js.org/configuration.html\n  },\n  idb: true, // Enable IndexedDB caching (default: true)\n  maxAgeMinutes: 60 * 24 * 30, // Optional cache expiry (default: 30 days)\n  fixMermaid: (code, error) => {\n    // Optional: auto-fix bad syntax using AI or heuristics\n    return code.replace(/;/g, \" --> \");\n  },\n});\n```\n\n---\n\n## 🛠 How It Works\n\n1. Looks for `code` blocks with `lang` = `mermaid`, `mmd`, or `mindmap`.\n2. Cleans and normalizes the code (but leaves sensitive diagram types untouched).\n3. Uses [Mermaid](https://mermaid.js.org) to generate an SVG.\n4. Replaces the block with a centered `<svg>` node inside your MDAST.\n5. Adds caching to speed up repeated renders:\n\n   - 🧠 **In-memory**: avoids duplicate renders during the same session\n   - 💾 **IndexedDB**: keeps results between sessions\n\n---\n\n## 🤖 Use with AI / Fixing Mermaid Diagrams\n\nLet’s say your users generate Mermaid charts via LLMs (and they sometimes mess up):\n\n```ts\nmermaidPlugin({\n  fixMermaid: async (code, error) => {\n    const response = await fetch(\"/fix-diagram\", {\n      method: \"POST\",\n      body: JSON.stringify({ code, error: error.message }),\n    });\n    return await response.text(); // New (hopefully fixed) diagram code\n  },\n});\n```\n\n📚 See [Mermaid docs](https://mermaid.js.org) for supported syntax and examples.\n\n---\n\n## 🧩 Part of the `@m2d` Ecosystem\n\nThis plugin works best when used with:\n\n- [`@m2d/core`](https://www.npmjs.com/package/@m2d/core) – Orchestrates plugins and generates DOCX\n- [`@m2d/image`](https://www.npmjs.com/package/@m2d/image) – Handles image conversion and embedding\n- [`@m2d/html`](https://www.npmjs.com/package/@m2d/html) – Parses inline HTML into MDAST nodes\n\n🌐 Try it live: [mdast2docx.vercel.app](https://mdast2docx.vercel.app)\n\n---\n\n## 🧼 Cache Cleanup\n\nTo avoid indexed-db bloat, the plugin:\n\n- Automatically cleans up expired cache entries **after document export**.\n- Ensures cleanup runs **only once per session** via a `cleanupDone` flag.\n- Stores rendered diagrams by **language and content hash** to prevent duplicates.\n\n---\n\n## 📄 License\n\nLicensed under the [MPL-2.0 License](https://www.mozilla.org/en-US/MPL/2.0/).\n\n---\n\n## 🤝 Contribute & Collaborate\n\nHave an idea? Spotted a bug? Want to level up documentation?\n\n- 💬 File issues or discussions on [GitHub](https://github.com/md2docx/mermaid)\n- 📦 Submit PRs – small or big!\n- ⭐ Star the project if you find it helpful\n\n---\n\n<p align=\"center\">\n  Made with 💖 by <a href=\"https://mayank-chaudhari.vercel.app\" target=\"_blank\">Mayank Kumar Chaudhari</a> and contributors\n</p>\n","readmeFilename":"README.md"}