{"_id":"blintz","_rev":"10-add75062cddfa9485b93a6f92fe209a7","name":"blintz","dist-tags":{"latest":"0.8.0"},"versions":{"0.1.0":{"name":"blintz","version":"0.1.0","keywords":["markdown","markdown-editor","wysiwyg","editor","react","milkdown","crepe","prosemirror","remark"],"author":{"name":"Dork Labs"},"license":"MIT","_id":"blintz@0.1.0","maintainers":[{"name":"dorkian","email":"dorian.collier@gmail.com"}],"homepage":"https://github.com/dork-labs/blintz#readme","bugs":{"url":"https://github.com/dork-labs/blintz/issues"},"dist":{"shasum":"ebb41eb94d1388b5729d5662387b689c0812591e","tarball":"https://registry.npmjs.org/blintz/-/blintz-0.1.0.tgz","fileCount":78,"integrity":"sha512-ouBjWfkLmRMgert8Q2j3GjJePCJrywyLGnBLQ6kiPFORhMOYfO9fpjIJf5PTvFhbMAxWruA6T9PEEmrZ2IRyCg==","signatures":[{"sig":"MEQCIEh7FDxgCmhKkr+h9//+pgPadCk5x7f18F9vaqpHIFE8AiBLj/x8ns/WE+bc63HwyWc93qAzKLcLEoi9cXA8rm4hEQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2048280},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./styles.css":"./dist/blintz.css"},"gitHead":"bbb8247c570f8f7608fa4cda9e0cc7646ba2bfec","scripts":{"build":"vite build","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"dorkian","email":"dorian.collier@gmail.com"},"repository":{"url":"git+https://github.com/dork-labs/blintz.git","type":"git","directory":"packages/blintz"},"_npmVersion":"10.9.7","description":"Blintz — a Vue-free React port of Milkdown's Crepe editor: the polished WYSIWYG markdown UX (slash menu, block drag handle, selection toolbar, rich node views) rebuilt as React components, with clean markdown round-tripping.","directories":{},"sideEffects":["*.css"],"_nodeVersion":"22.22.2","dependencies":{"katex":"^0.17.0","dompurify":"^3.4.11","codemirror":"^6.0.2","remark-math":"^6.0.0","@milkdown/kit":"^7.21.2","lucide-static":"^1.21.0","@milkdown/react":"^7.21.2","@codemirror/view":"^6.43.1","@floating-ui/dom":"^1.7.6","unist-util-visit":"^5.0.0","@codemirror/state":"^6.6.0","@codemirror/commands":"^6.10.3","@codemirror/language":"^6.12.3","@milkdown/theme-nord":"^7.21.2","@codemirror/language-data":"^6.5.2","@codemirror/theme-one-dark":"^6.1.3","@prosemirror-adapter/react":"0.5.3","prosemirror-virtual-cursor":"^0.4.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.0.0","typescript":"^5.9.0","@types/react":"^19.2.0","vite-plugin-dts":"^4.5.4","@types/react-dom":"^19.2.0","@vitejs/plugin-react":"^4.7.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/blintz_0.1.0_1782343398786_0.15886734195536456","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"blintz","version":"0.2.0","keywords":["markdown","markdown-editor","wysiwyg","editor","react","milkdown","crepe","prosemirror","remark"],"author":{"name":"Dork Labs"},"license":"MIT","_id":"blintz@0.2.0","maintainers":[{"name":"dorkian","email":"dorian.collier@gmail.com"}],"homepage":"https://github.com/dork-labs/blintz#readme","bugs":{"url":"https://github.com/dork-labs/blintz/issues"},"dist":{"shasum":"5d00b28bc290d8059aef066dd10a595360357e79","tarball":"https://registry.npmjs.org/blintz/-/blintz-0.2.0.tgz","fileCount":80,"integrity":"sha512-+lm2KHXNren/TVHGPZ3cevyxgiFaJfwH/PpKYcGvJJZ5EixYiFGdhT+ZUhjqXnYMOMbwMMO5HLAAUjkbPAlCcQ==","signatures":[{"sig":"MEQCIAKtkWHbNjxWWWl0WBfmAD9Ifxhzdk/7kFEBZssOJKu4AiBPw/hosLEQutxKpMUJqjRmmdsmKGF+8bHftd0P1WsPUA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2058766},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./styles.css":"./dist/blintz.css"},"gitHead":"3602f55499c846453f0e2f4ad1b1bb59079d6cd6","scripts":{"build":"vite build","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"dorkian","email":"dorian.collier@gmail.com"},"repository":{"url":"git+https://github.com/dork-labs/blintz.git","type":"git","directory":"packages/blintz"},"_npmVersion":"11.11.0","description":"Blintz — a Vue-free React port of Milkdown's Crepe editor: the polished WYSIWYG markdown UX (slash menu, block drag handle, selection toolbar, rich node views) rebuilt as React components, with clean markdown round-tripping.","directories":{},"sideEffects":["*.css"],"_nodeVersion":"24.14.1","dependencies":{"katex":"^0.17.0","dompurify":"^3.4.11","codemirror":"^6.0.2","remark-math":"^6.0.0","@milkdown/kit":"^7.21.2","lucide-static":"^1.21.0","@milkdown/react":"^7.21.2","@codemirror/view":"^6.43.1","@floating-ui/dom":"^1.7.6","unist-util-visit":"^5.0.0","@codemirror/state":"^6.6.0","@codemirror/commands":"^6.10.3","@codemirror/language":"^6.12.3","@milkdown/theme-nord":"^7.21.2","@codemirror/language-data":"^6.5.2","@codemirror/theme-one-dark":"^6.1.3","@prosemirror-adapter/react":"0.5.3","prosemirror-virtual-cursor":"^0.4.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.0.0","typescript":"^5.9.0","@types/react":"^19.2.0","vite-plugin-dts":"^4.5.4","@types/react-dom":"^19.2.0","@vitejs/plugin-react":"^4.7.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/blintz_0.2.0_1782523694690_0.780892590149717","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"blintz","version":"0.3.0","keywords":["markdown","markdown-editor","wysiwyg","editor","react","milkdown","crepe","prosemirror","remark"],"author":{"name":"Dork Labs"},"license":"MIT","_id":"blintz@0.3.0","maintainers":[{"name":"dorkian","email":"dorian.collier@gmail.com"}],"homepage":"https://github.com/dork-labs/blintz#readme","bugs":{"url":"https://github.com/dork-labs/blintz/issues"},"dist":{"shasum":"3e17324b60263675a0ad3952b61467fc624ef83c","tarball":"https://registry.npmjs.org/blintz/-/blintz-0.3.0.tgz","fileCount":83,"integrity":"sha512-BuE3legUXeRTieyRts3fVIPT7vMeJR+o1WdYbNNiO1tledj49dbqzm8Z3vHDRJP6UaJh0GupJf3gfJ+byqtbaA==","signatures":[{"sig":"MEUCIHPpJGMoKYJKFKe3GxHfsoMTh79oafoRRkurm0R0AzmVAiEApXouGmlAlzUX+p79TZL0o5JylFko4R9BjvdeLfaD2yg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2067443},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./styles.css":"./dist/blintz.css"},"gitHead":"dd0664c3d8f773cb3024fff4fb4427f71cd20e1f","scripts":{"build":"vite build","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"dorkian","email":"dorian.collier@gmail.com"},"repository":{"url":"git+https://github.com/dork-labs/blintz.git","type":"git","directory":"packages/blintz"},"_npmVersion":"11.11.0","description":"Blintz — a Vue-free React port of Milkdown's Crepe editor: the polished WYSIWYG markdown UX (slash menu, block drag handle, selection toolbar, rich node views) rebuilt as React components, with clean markdown round-tripping.","directories":{},"sideEffects":["*.css"],"_nodeVersion":"24.14.1","dependencies":{"katex":"^0.17.0","dompurify":"^3.4.11","codemirror":"^6.0.2","remark-math":"^6.0.0","@milkdown/kit":"^7.21.2","lucide-static":"^1.21.0","@milkdown/react":"^7.21.2","@codemirror/view":"^6.43.1","@floating-ui/dom":"^1.7.6","unist-util-visit":"^5.0.0","@codemirror/state":"^6.6.0","remark-frontmatter":"^5.0.0","@codemirror/commands":"^6.10.3","@codemirror/language":"^6.12.3","@milkdown/theme-nord":"^7.21.2","@codemirror/language-data":"^6.5.2","@codemirror/theme-one-dark":"^6.1.3","@prosemirror-adapter/react":"0.5.3","prosemirror-virtual-cursor":"^0.4.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.0.0","typescript":"^5.9.0","@types/react":"^19.2.0","vite-plugin-dts":"^4.5.4","@types/react-dom":"^19.2.0","@vitejs/plugin-react":"^4.7.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/blintz_0.3.0_1782528372835_0.6773951965975029","host":"s3://npm-registry-packages-npm-production"}},"0.4.0":{"name":"blintz","version":"0.4.0","keywords":["markdown","markdown-editor","wysiwyg","editor","react","milkdown","crepe","prosemirror","remark"],"author":{"name":"Dork Labs"},"license":"MIT","_id":"blintz@0.4.0","maintainers":[{"name":"dorkian","email":"dorian.collier@gmail.com"}],"homepage":"https://github.com/dork-labs/blintz#readme","bugs":{"url":"https://github.com/dork-labs/blintz/issues"},"dist":{"shasum":"69a9ccae6bda66b55a37219d6a9e7f97c9c33668","tarball":"https://registry.npmjs.org/blintz/-/blintz-0.4.0.tgz","fileCount":83,"integrity":"sha512-mrwJnhsbJZs/BT68FKS3nGlr6K7yTmYjDZRBitYQ3Wwxd4RYRN3fJuzEznSiWH3rkQyF3Q1FRsbLt8YDJq/t6A==","signatures":[{"sig":"MEUCIQDh90XpW/sveC9pliNd8lKZ7+C6/3XspQq1tkWapVdYzAIgDXeX1nLO/RbwH/tgWKpQxFqNbwyL7LaP2SvXO6wUDpo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2074372},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./styles.css":"./dist/blintz.css"},"gitHead":"dc475053423ec4501f7471a30d9e2a5eb4c96063","scripts":{"build":"vite build","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"dorkian","email":"dorian.collier@gmail.com"},"repository":{"url":"git+https://github.com/dork-labs/blintz.git","type":"git","directory":"packages/blintz"},"_npmVersion":"11.11.0","description":"Blintz — a Vue-free React port of Milkdown's Crepe editor: the polished WYSIWYG markdown UX (slash menu, block drag handle, selection toolbar, rich node views) rebuilt as React components, with clean markdown round-tripping.","directories":{},"sideEffects":["*.css"],"_nodeVersion":"24.14.1","dependencies":{"katex":"^0.17.0","dompurify":"^3.4.11","codemirror":"^6.0.2","remark-math":"^6.0.0","@milkdown/kit":"^7.21.2","lucide-static":"^1.21.0","@milkdown/react":"^7.21.2","@codemirror/view":"^6.43.1","@floating-ui/dom":"^1.7.6","unist-util-visit":"^5.0.0","@codemirror/state":"^6.6.0","remark-frontmatter":"^5.0.0","@codemirror/commands":"^6.10.3","@codemirror/language":"^6.12.3","@milkdown/theme-nord":"^7.21.2","@codemirror/language-data":"^6.5.2","@codemirror/theme-one-dark":"^6.1.3","@prosemirror-adapter/react":"0.5.3","prosemirror-virtual-cursor":"^0.4.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.0.0","typescript":"^5.9.0","@types/react":"^19.2.0","vite-plugin-dts":"^4.5.4","@types/react-dom":"^19.2.0","@vitejs/plugin-react":"^4.7.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/blintz_0.4.0_1784743294938_0.03079511433567972","host":"s3://npm-registry-packages-npm-production"}},"0.5.0":{"name":"blintz","version":"0.5.0","keywords":["markdown","markdown-editor","wysiwyg","editor","react","milkdown","crepe","prosemirror","remark"],"author":{"name":"Dork Labs"},"license":"MIT","_id":"blintz@0.5.0","maintainers":[{"name":"dorkian","email":"dorian.collier@gmail.com"}],"homepage":"https://github.com/dork-labs/blintz#readme","bugs":{"url":"https://github.com/dork-labs/blintz/issues"},"dist":{"shasum":"ff93c5dd168dcbf895a18c2f56a734a306288f4a","tarball":"https://registry.npmjs.org/blintz/-/blintz-0.5.0.tgz","fileCount":86,"integrity":"sha512-uBxPrXxciCk3mYHfeLFy8oel+2Hga38SpvM9FnNjeZ9bEoUja0syIxHoW2ZgkCHb+lALB8gXD683QpJ+aRVfdA==","signatures":[{"sig":"MEYCIQDIiWzvP4GzfWOyxquikt5iRFairRp12u/snNv2MPtHDAIhAJMMeUjRsMJ8a6FipEDnGbt+0v0FThVX47iar2jaxPK3","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDbLY/XfcNgjW8+8IaOuFTWBUa7wcXvFbLQ0ysTIHJeuAIhAMxoVTboCcKwtJLGuDTo92pQdBjlJY4GcBCBnYO3om4m","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2114580},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./styles.css":"./dist/blintz.css"},"scripts":{"build":"vite build","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"dorkian","email":"dorian.collier@gmail.com"},"repository":{"url":"git+https://github.com/dork-labs/blintz.git","type":"git","directory":"packages/blintz"},"_npmVersion":"10.9.7","description":"Blintz — a Vue-free React port of Milkdown's Crepe editor: the polished WYSIWYG markdown UX (slash menu, block drag handle, selection toolbar, rich node views) rebuilt as React components, with clean markdown round-tripping.","directories":{},"sideEffects":["*.css"],"_nodeVersion":"22.22.2","dependencies":{"katex":"^0.17.0","dompurify":"^3.4.15","codemirror":"^6.0.2","remark-math":"^6.0.0","@milkdown/kit":"^7.22.1","lucide-static":"^1.21.0","@milkdown/react":"^7.22.1","@codemirror/view":"^6.43.11","@floating-ui/dom":"^1.8.0","@lezer/highlight":"^1.2.3","unist-util-visit":"^5.0.0","@codemirror/state":"^6.7.4","remark-frontmatter":"^5.0.0","@codemirror/commands":"^6.11.0","@codemirror/language":"^6.12.4","@codemirror/language-data":"^6.5.2","@prosemirror-adapter/react":"0.5.5","prosemirror-virtual-cursor":"^0.4.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.6","typescript":"^5.9.0","@types/react":"^19.2.0","vite-plugin-dts":"^4.5.4","@types/react-dom":"^19.2.0","@vitejs/plugin-react":"^4.7.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/blintz_0.5.0_1789415460000_0.24429715641515837","host":"s3://npm-registry-packages-npm-production"}},"0.6.0":{"name":"blintz","version":"0.6.0","keywords":["markdown","markdown-editor","wysiwyg","editor","react","milkdown","crepe","prosemirror","remark"],"author":{"name":"Dork Labs"},"license":"MIT","_id":"blintz@0.6.0","maintainers":[{"name":"dorkian","email":"dorian.collier@gmail.com"}],"homepage":"https://github.com/dork-labs/blintz#readme","bugs":{"url":"https://github.com/dork-labs/blintz/issues"},"dist":{"shasum":"8f7f35582a58da85abf4028213f2ee837d69f2b7","tarball":"https://registry.npmjs.org/blintz/-/blintz-0.6.0.tgz","fileCount":90,"integrity":"sha512-yp/oQkjg8ULxRJWNpmELrml8nu1Usa3tGHc+1EnkMH1qx+yHtB7fGvtC/NTOER+11HdrAx8wxZ9/o4X75YVl4w==","signatures":[{"sig":"MEUCIDVnSqe3yiEaHq+OJdHMJ/PKrLQr+ND4wY9VkPZX6EFsAiEAwEzwZOyuZ/ruz2yd0ywQslWkD+EatfezuEjwByc0/Ak=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQDDjnGrG730x6An2HBlbWOTrWoISy00NEYvL1ZQPuTxNQIhAIXCxSEbhzrrK7VC4ZfZb2kGbEuEeWyv2ujGpiIGaeQd","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2165906},"main":"./dist/index.js","type":"module","_from":"file:/Users/doriancollier/Keep/dork-os/.workspace/doc-channel-evidence/blintz-release-0.6.0/publication-f102/blintz-0.6.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./styles.css":"./dist/blintz.css"},"scripts":{"build":"vite build","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"dorkian","email":"dorian.collier@gmail.com"},"_resolved":"/Users/doriancollier/Keep/dork-os/.workspace/doc-channel-evidence/blintz-release-0.6.0/publication-f102/blintz-0.6.0.tgz","_integrity":"sha512-yp/oQkjg8ULxRJWNpmELrml8nu1Usa3tGHc+1EnkMH1qx+yHtB7fGvtC/NTOER+11HdrAx8wxZ9/o4X75YVl4w==","repository":{"url":"git+https://github.com/dork-labs/blintz.git","type":"git","directory":"packages/blintz"},"_npmVersion":"11.11.0","description":"Blintz — a Vue-free React port of Milkdown's Crepe editor: the polished WYSIWYG markdown UX (slash menu, block drag handle, selection toolbar, rich node views) rebuilt as React components, with clean markdown round-tripping.","directories":{},"sideEffects":["*.css"],"_nodeVersion":"24.14.1","dependencies":{"katex":"^0.17.0","dompurify":"^3.4.15","codemirror":"^6.0.2","remark-math":"^6.0.0","@milkdown/kit":"^7.22.1","lucide-static":"^1.21.0","@milkdown/react":"^7.22.1","@codemirror/view":"^6.43.11","@floating-ui/dom":"^1.8.0","@lezer/highlight":"^1.2.3","unist-util-visit":"^5.0.0","@codemirror/state":"^6.7.4","remark-frontmatter":"^5.0.0","@codemirror/commands":"^6.11.0","@codemirror/language":"^6.12.4","@codemirror/language-data":"^6.5.2","@prosemirror-adapter/react":"0.5.5","prosemirror-virtual-cursor":"^0.4.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.6","typescript":"^5.9.0","@types/react":"^19.2.0","vite-plugin-dts":"^4.5.4","@types/react-dom":"^19.2.0","@vitejs/plugin-react":"^4.7.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/blintz_0.6.0_1790938909543_0.3689750382111632","host":"s3://npm-registry-packages-npm-production"}},"0.7.0":{"name":"blintz","version":"0.7.0","keywords":["markdown","markdown-editor","wysiwyg","editor","react","milkdown","crepe","prosemirror","remark"],"author":{"name":"Dork Labs"},"license":"MIT","_id":"blintz@0.7.0","maintainers":[{"name":"dorkian","email":"dorian.collier@gmail.com"}],"homepage":"https://github.com/dork-labs/blintz#readme","bugs":{"url":"https://github.com/dork-labs/blintz/issues"},"dist":{"shasum":"9493a616f8bba716df6d8cc22fcfd7825c09e3a7","tarball":"https://registry.npmjs.org/blintz/-/blintz-0.7.0.tgz","fileCount":91,"integrity":"sha512-y2KEMCKwMpsdD3u+aWt+hop7MP6kkyfUuxXOoOf94j50SKJLxVJZ4rXLRnGxM6hSbhf4bfM6PbXw85AW/n2dRw==","signatures":[{"sig":"MEUCIGE/e1icJxditLvBuTizjAe7FiwBfg0EjgFOrB3467m/AiEAsCsJxFjq2CSXbedXQOK8oZDbyVtlCO98ldo/13LGvn4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEUCICT+2ITxmUs/22rU2Zjx8jgpkRGeu9aP8njRSATPG3h2AiEAuOK9ov6WrKoRV8KHYfnd3HiHXwRftuvGAb6q1A/L4VE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2218605},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./styles.css":"./dist/blintz.css"},"scripts":{"build":"vite build","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"dorkian","email":"dorian.collier@gmail.com"},"repository":{"url":"git+https://github.com/dork-labs/blintz.git","type":"git","directory":"packages/blintz"},"_npmVersion":"10.9.7","description":"Blintz — a Vue-free React port of Milkdown's Crepe editor: the polished WYSIWYG markdown UX (slash menu, block drag handle, selection toolbar, rich node views) rebuilt as React components, with clean markdown round-tripping.","directories":{},"sideEffects":["*.css"],"_nodeVersion":"22.22.2","dependencies":{"katex":"^0.17.0","dompurify":"^3.4.15","codemirror":"^6.0.2","remark-math":"^6.0.0","@milkdown/kit":"^7.22.1","lucide-static":"^1.21.0","@milkdown/react":"^7.22.1","@codemirror/view":"^6.43.11","@floating-ui/dom":"^1.8.0","@lezer/highlight":"^1.2.3","unist-util-visit":"^5.0.0","@codemirror/state":"^6.7.4","remark-frontmatter":"^5.0.0","@codemirror/commands":"^6.11.0","@codemirror/language":"^6.12.4","@codemirror/language-data":"^6.5.2","@prosemirror-adapter/react":"0.5.5","prosemirror-virtual-cursor":"^0.4.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.6","typescript":"^5.9.0","@types/react":"^19.2.0","vite-plugin-dts":"^4.5.4","@types/react-dom":"^19.2.0","@vitejs/plugin-react":"^4.7.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/blintz_0.7.0_1791160996933_0.9055163394192769","host":"s3://npm-registry-packages-npm-production"}},"0.7.1":{"name":"blintz","version":"0.7.1","keywords":["markdown","markdown-editor","wysiwyg","editor","react","milkdown","crepe","prosemirror","remark"],"author":{"name":"Dork Labs"},"license":"MIT","_id":"blintz@0.7.1","maintainers":[{"name":"dorkian","email":"dorian.collier@gmail.com"}],"homepage":"https://github.com/dork-labs/blintz#readme","bugs":{"url":"https://github.com/dork-labs/blintz/issues"},"dist":{"shasum":"ca868029e05d7a455bc1d202922c968ec32acd70","tarball":"https://registry.npmjs.org/blintz/-/blintz-0.7.1.tgz","fileCount":91,"integrity":"sha512-7XFxELE7iGXg19W4RV1qJDKwZFBwt2jkkoiTxo81P3NrXY26ccB/1P/SiBBKIWXclvBpA2SMzgXNnwKBSZi49g==","signatures":[{"sig":"MEUCIQCPUKFsh7IE3nU/mCJ51Auhtax1FnTeicqzAttJAQyGBAIgRXxbnX4e0B5mCax+Hepm2GqXUW7LJMET38LoIUP65Do=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEQCIFCW/W+zbKXlranj9IBdFPzJ6kBZ7xO4lueKOePr8aEsAiBhHdSGIgBYZs8zcC7Y0p4E7uG60DWYX2Nj0hdG2Hce+w==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2219156},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./styles.css":"./dist/blintz.css"},"scripts":{"build":"vite build","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"dorkian","email":"dorian.collier@gmail.com"},"repository":{"url":"git+https://github.com/dork-labs/blintz.git","type":"git","directory":"packages/blintz"},"_npmVersion":"11.11.0","description":"Blintz — a Vue-free React port of Milkdown's Crepe editor: the polished WYSIWYG markdown UX (slash menu, block drag handle, selection toolbar, rich node views) rebuilt as React components, with clean markdown round-tripping.","directories":{},"sideEffects":["*.css"],"_nodeVersion":"24.14.1","dependencies":{"katex":"^0.17.0","dompurify":"^3.4.15","codemirror":"^6.0.2","remark-math":"^6.0.0","@milkdown/kit":"^7.22.1","lucide-static":"^1.21.0","@milkdown/react":"^7.22.1","@codemirror/view":"^6.43.11","@floating-ui/dom":"^1.8.0","@lezer/highlight":"^1.2.3","unist-util-visit":"^5.0.0","@codemirror/state":"^6.7.4","remark-frontmatter":"^5.0.0","@codemirror/commands":"^6.11.0","@codemirror/language":"^6.12.4","@codemirror/language-data":"^6.5.2","@prosemirror-adapter/react":"0.5.5","prosemirror-virtual-cursor":"^0.4.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.6","typescript":"^5.9.0","@types/react":"^19.2.0","vite-plugin-dts":"^4.5.4","@types/react-dom":"^19.2.0","@vitejs/plugin-react":"^4.7.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/blintz_0.7.1_1791197346358_0.3604204764683827","host":"s3://npm-registry-packages-npm-production"}},"0.7.2":{"name":"blintz","version":"0.7.2","keywords":["markdown","markdown-editor","wysiwyg","editor","react","milkdown","crepe","prosemirror","remark"],"author":{"name":"Dork Labs"},"license":"MIT","_id":"blintz@0.7.2","maintainers":[{"name":"dorkian","email":"dorian.collier@gmail.com"}],"homepage":"https://github.com/dork-labs/blintz#readme","bugs":{"url":"https://github.com/dork-labs/blintz/issues"},"dist":{"shasum":"d9e3bb1598c6684d2ed89c16b926a20ad8be2113","tarball":"https://registry.npmjs.org/blintz/-/blintz-0.7.2.tgz","fileCount":91,"integrity":"sha512-7Ee4KWlyawlAjnifn3oAw3XibEJ3CTelm8o+TabM3I2QipSePjTjk22feTERx6sB9ALfiFSVq9x+AGCfAXDcCw==","signatures":[{"sig":"MEUCIQDPLc2Ybb+ih6/RDpw36ETgaX5KAnJnhXfYLvnTMEXlRgIgMYAyA71gqhiYMO2BXRVYeotQ+F2bGlIyGz4vpnEDgRs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"sig":"MEYCIQCKEx16Qr6zMxyf6wDua3DwuFQqUAQmqX3ale9j1dDU9wIhAM6tyNOPQ+eIHFsjgssMEJxQMPDn0987KtwGrfK084LR","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2228577},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./styles.css":"./dist/blintz.css"},"scripts":{"build":"vite build","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"_npmUser":{"name":"dorkian","email":"dorian.collier@gmail.com"},"repository":{"url":"git+https://github.com/dork-labs/blintz.git","type":"git","directory":"packages/blintz"},"_npmVersion":"11.11.0","description":"Blintz — a Vue-free React port of Milkdown's Crepe editor: the polished WYSIWYG markdown UX (slash menu, block drag handle, selection toolbar, rich node views) rebuilt as React components, with clean markdown round-tripping.","directories":{},"sideEffects":["*.css"],"_nodeVersion":"24.14.1","dependencies":{"katex":"^0.17.0","dompurify":"^3.4.15","codemirror":"^6.0.2","remark-math":"^6.0.0","@milkdown/kit":"^7.22.1","lucide-static":"^1.21.0","@milkdown/react":"^7.22.1","@codemirror/view":"^6.43.11","@floating-ui/dom":"^1.8.0","@lezer/highlight":"^1.2.3","unist-util-visit":"^5.0.0","@codemirror/state":"^6.7.4","remark-frontmatter":"^5.0.0","@codemirror/commands":"^6.11.0","@codemirror/language":"^6.12.4","@codemirror/language-data":"^6.5.2","@prosemirror-adapter/react":"0.5.5","prosemirror-virtual-cursor":"^0.4.2"},"_hasShrinkwrap":false,"devDependencies":{"vite":"^7.3.6","typescript":"^5.9.0","@types/react":"^19.2.0","vite-plugin-dts":"^4.5.4","@types/react-dom":"^19.2.0","@vitejs/plugin-react":"^4.7.0"},"peerDependencies":{"react":">=18","react-dom":">=18"},"_npmOperationalInternal":{"tmp":"tmp/blintz_0.7.2_1791206652892_0.267324517963468","host":"s3://npm-registry-packages-npm-production"}},"0.8.0":{"_id":"blintz@0.8.0","bugs":{"url":"https://github.com/dork-labs/blintz/issues"},"dist":{"shasum":"50e1c43026e6b04a76b090a1e5b1ca324535cdc5","tarball":"https://registry.npmjs.org/blintz/-/blintz-0.8.0.tgz","fileCount":131,"integrity":"sha512-Wjb3ZiFCIzjUGRIHlFqqAblJGyMOZfhYd5X0anBu6P+yrPvQfq9eBr9P0EOym8yoj01WJ0ShBO4iFqZX80Mv1g==","signatures":[{"sig":"MEYCIQCLwltzuGME2H6R6KnEBKzTPmdsM3cfCHaCTZYLCaVmdAIhAN/RZdAYXAGkM965p8j0pLVXqNNVE5+f/hID15/D30VW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"},{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIATx+R0KgIJBPTd2kpKFdG/mnbg+y5PiwymaN0wvgZ0ZAiEA4kEMKkm1KCuQQupEgM7NetUnP2Th/fu+CdGCtIfWxKE="}],"unpackedSize":2514352},"main":"./dist/index.js","name":"blintz","type":"module","types":"./dist/index.d.ts","author":{"name":"Dork Labs"},"module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js"},"./collab":{"types":"./dist/collab.d.ts","import":"./dist/collab.js"},"./markdown":{"types":"./dist/markdown.d.ts","import":"./dist/markdown.js"},"./directives":{"types":"./dist/directives.d.ts","import":"./dist/directives.js"},"./styles.css":"./dist/blintz.css"},"gitHead":"8883b3057c4359f1c501fa7041d1697482ed58cc","license":"MIT","scripts":{"build":"vite build","typecheck":"tsc --noEmit","prepublishOnly":"npm run build"},"version":"0.8.0","_npmUser":{"name":"dorkian","email":"dorian.collier@gmail.com"},"homepage":"https://github.com/dork-labs/blintz#readme","keywords":["markdown","markdown-editor","wysiwyg","editor","react","milkdown","crepe","prosemirror","remark"],"repository":{"url":"git+https://github.com/dork-labs/blintz.git","type":"git","directory":"packages/blintz"},"_npmVersion":"10.9.9","description":"Blintz — a Vue-free React port of Milkdown's Crepe editor: the polished WYSIWYG markdown UX (slash menu, block drag handle, selection toolbar, rich node views) rebuilt as React components, with clean markdown round-tripping.","directories":{},"maintainers":[{"name":"dorkian","email":"dorian.collier@gmail.com"}],"sideEffects":["*.css"],"_nodeVersion":"22.23.3","dependencies":{"katex":"^0.17.0","unified":"^11.0.5","dompurify":"^3.4.15","codemirror":"^6.0.2","remark-math":"^6.0.0","@types/mdast":"^4.0.4","@milkdown/kit":"^7.22.1","lucide-static":"^1.21.0","@milkdown/react":"^7.22.1","@codemirror/view":"^6.43.11","@floating-ui/dom":"^1.8.0","@lezer/highlight":"^1.2.3","unist-util-visit":"^5.0.0","@codemirror/state":"^6.7.4","remark-frontmatter":"^5.0.0","@codemirror/commands":"^6.11.0","@codemirror/language":"^6.12.4","mdast-util-directive":"^3.1.1","mdast-util-to-string":"^4.0.0","micromark-util-types":"^2.0.3","mdast-util-to-markdown":"^2.2.0","mdast-util-from-markdown":"^2.1.0","@codemirror/language-data":"^6.5.2","@prosemirror-adapter/react":"0.5.5","prosemirror-virtual-cursor":"^0.4.2","micromark-extension-directive":"^4.0.0","micromark-util-normalize-identifier":"^2.0.1"},"_hasShrinkwrap":false,"devDependencies":{"yjs":"^13.6.33","vite":"^7.3.6","typescript":"^5.9.0","y-protocols":"^1.0.7","@types/react":"^19.2.0","y-prosemirror":"^1.3.7","vite-plugin-dts":"^4.5.4","@types/react-dom":"^19.2.0","@vitejs/plugin-react":"^4.7.0"},"peerDependencies":{"yjs":"^13.6.0","react":">=18","mermaid":">=10","react-dom":">=18","y-protocols":"^1.0.6","y-prosemirror":"^1.3.4"},"peerDependenciesMeta":{"yjs":{"optional":true},"mermaid":{"optional":true},"y-protocols":{"optional":true},"y-prosemirror":{"optional":true}},"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/blintz_0.8.0_1792261665189_0.4501445761875873"}}},"time":{"created":"2026-06-24T23:23:18.728Z","modified":"2026-10-17T18:27:45.453Z","0.1.0":"2026-06-24T23:23:18.994Z","0.2.0":"2026-06-27T01:28:14.904Z","0.3.0":"2026-06-27T02:46:13.011Z","0.4.0":"2026-07-22T18:01:35.168Z","0.5.0":"2026-09-14T19:51:00.185Z","0.6.0":"2026-10-02T11:01:49.648Z","0.7.0":"2026-10-05T00:43:17.128Z","0.7.1":"2026-10-05T10:49:06.469Z","0.7.2":"2026-10-05T13:24:13.015Z","0.8.0":"2026-10-17T18:27:45.300Z"},"bugs":{"url":"https://github.com/dork-labs/blintz/issues"},"author":{"name":"Dork Labs"},"license":"MIT","homepage":"https://github.com/dork-labs/blintz#readme","keywords":["markdown","markdown-editor","wysiwyg","editor","react","milkdown","crepe","prosemirror","remark"],"repository":{"url":"git+https://github.com/dork-labs/blintz.git","type":"git","directory":"packages/blintz"},"description":"Blintz — a Vue-free React port of Milkdown's Crepe editor: the polished WYSIWYG markdown UX (slash menu, block drag handle, selection toolbar, rich node views) rebuilt as React components, with clean markdown round-tripping.","maintainers":[{"name":"dorkian","email":"dorian.collier@gmail.com"}],"readme":"# Blintz\n\nA React port of [Milkdown](https://milkdown.dev)'s _Crepe_ editor: a Notion-style WYSIWYG markdown editor (selection toolbar, slash menu, block drag handle, rich node views) that round-trips clean markdown, with no Vue in the bundle.\n\n> Why \"Blintz\"? A blintz is a thin crêpe folded around a filling. That's the idea here: Milkdown's Crepe, wrapped up for React, with a few fillings of our own. Blintz is an independent derivative. It isn't affiliated with or endorsed by the Milkdown project.\n\n```bash\nnpm install blintz\n# peer deps: react >=18, react-dom >=18\n```\n\n```tsx\nimport { MarkdownEditor } from \"blintz\";\nimport \"blintz/styles.css\"; // required when consuming the built package\n\nfunction Example() {\n  const [md, setMd] = useState(\"# Hello\\n\\nType `/` for commands.\");\n  return <MarkdownEditor value={md} onChange={setMd} />;\n}\n```\n\nThe whole public surface is one controlled `<MarkdownEditor value onChange />` component, plus `editable`, `placeholder`, `theme`, `className`, `embeds`, `wikiLinks`, `mermaid` and `plugins` (collaboration loads as a plugin). The Milkdown engine, the Crepe-derived feature views, and the theme CSS sit behind it.\n\n## Read-only mode\n\nPass `editable={false}` to render a document read-only. The content still renders with full fidelity (lists, code with highlighting, tables, images, links, math), but editing is off: ProseMirror's `contenteditable` is disabled and the editing chrome is suppressed (the slash menu, the `+`/`::` block handle and drag-to-reorder, the selection toolbar, the link-edit popovers, and the placeholder).\n\n```tsx\n<MarkdownEditor value={md} editable={false} />\n```\n\n`editable` defaults to `true`, so existing consumers are unaffected. It is reactive: toggle it on a mounted editor and the change takes effect right away, with no remount. The editor turns editable or read-only in place, so scroll position and selection are kept and the editing chrome (slash menu, block handle, drag) works the moment editing is enabled.\n\n```tsx\n<MarkdownEditor value={md} editable={mode === \"edit\"} onChange={setMd} />\n```\n\n(The `plugins` prop is the exception: it is read once at mount, so changing the extension set still needs a remount.)\n\n## Embeds\n\nEmbeds put your own React components inside a document while the document stays plain markdown. Write a block directive, and Blintz renders the component you registered under that name:\n\n```md\n::chart[Tasks closed]{kind=\"bar\" src=\"tasks/q3\"}\n\n:::callout{tone=\"warn\"}\nAnything in here is **ordinary markdown**, editable in place.\n:::\n```\n\n```tsx\nimport { MarkdownEditor, type EmbedProps, type EmbedRegistry } from \"blintz\";\n\nfunction Chart({ attributes, label }: EmbedProps) {\n  return <MyChart src={attributes.src} kind={attributes.kind} title={label} />;\n}\n\nfunction Callout({ attributes, children }: EmbedProps) {\n  return <aside data-tone={attributes.tone}>{children}</aside>;\n}\n\nconst embeds: EmbedRegistry = {\n  chart: { component: Chart, title: \"Chart\", defaultAttributes: { kind: \"bar\" } },\n  callout: { component: Callout, kind: \"container\" },\n};\n\n<MarkdownEditor value={md} onChange={setMd} embeds={embeds} />;\n```\n\n- `::name{…}` is a leaf embed. `:::name … :::` is a container whose markdown content arrives as `children`. Put `children` where the editable content should go. If a component doesn't render `children` (or renders them later), the content shows below it, so it is never hidden.\n- Inside a container, Enter on an empty last line leaves it, as in a quote. Backspace at its very start selects the whole embed instead of unwrapping it; press it again to delete the embed.\n- A component gets `name`, `attributes` (all strings), `label` (the `[…]` text), `editable`, and, while the document is editable, `updateAttributes(next)`, which writes new attributes back to the markdown as one undoable step. Render from these props alone, so the same component can render a published page on the server.\n- `validate` takes a [Standard Schema](https://standardschema.dev) (Zod, Valibot, ArkType and others) or a plain function returning `{ issues }`. Invalid attributes show the problems instead of the component.\n- A name with nothing registered shows a placeholder and stays in the markdown unchanged. A component that throws shows an error in its place; the rest of the editor keeps working.\n- Registered embeds appear in the slash menu under **Embeds**. `hideFromMenu` leaves one out.\n- `embeds` is reactive: changing it re-renders embeds in place, with no remount.\n\nOnly block directives are recognized. Inline `:name[…]` directives are not, so text such as `:smile:` or `note:this` is never touched, and neither is a line like `::: note` or `::std::cout`. What does change meaning:\n\n- A line that is a complete directive (`::name`, `::name[label]{attrs}` or `:::name…`, with nothing after it) becomes an embed, even inside a paragraph. When you mean it as text, write `\\::name`.\n- Attributes are written back as double-quoted `key=\"value\"` pairs in their written order. Other spellings still parse and are rewritten in that form: `key=value`, `#id`, `.class`. A repeated key keeps its last value, and `{a=\"\"}` is written `{a}`.\n\n### Rendering directives without the editor\n\n`blintz/markdown` holds every grammar Blintz adds (directives and wiki links) as remark plugins, with no React or ProseMirror; `blintz/directives` holds the directive part alone. Use them to publish documents or read them on a server:\n\n```ts\nimport { unified } from \"unified\";\nimport remarkParse from \"remark-parse\";\nimport remarkStringify from \"remark-stringify\";\nimport { remarkBlockDirectives, remarkWikiLinks, validateEmbedAttributes } from \"blintz/markdown\";\n\nconst tree = unified().use(remarkParse).use(remarkWikiLinks).use(remarkBlockDirectives).parse(markdown);\n// `leafDirective` and `containerDirective` nodes carry `name` and `attributes`;\n// `wikiLink` nodes carry `target`, `heading`, `label` and `embed`.\n```\n\nWhen writing markdown, `remarkBlockDirectives` wraps the paragraph handler so text that looks like a directive stays text. Register any plugin with its own paragraph handler *before* it, so the guard wraps that handler instead of being replaced.\n\n## Wiki links\n\n`[[Page]]`, `[[Page#Heading]]`, `[[Page|label]]` and `![[Page]]` are links between documents. The markdown keeps exactly what the author typed; where a link points is up to you:\n\n```tsx\n<MarkdownEditor\n  value={md}\n  onChange={setMd}\n  wikiLinks={{\n    resolve: async ({ target, heading }) => {\n      const page = await pages.find(target);\n      return page\n        ? { exists: true, href: `/docs/${page.id}${heading ? `#${heading}` : \"\"}`, title: page.title }\n        : { exists: false };\n    },\n    search: (query) => pages.search(query).map((page) => ({ target: page.title, description: page.space })),\n    onOpen: (link, resolution) => router.push(resolution?.href ?? `/new?title=${link.target}`),\n  }}\n/>\n```\n\n- `resolve` gets `{ target, heading, label, embed }` and returns `{ exists, href?, title? }`, sync or async. Each distinct target, heading and link/embed kind is resolved once while the function stays the same (failures included), so pass a stable function, and a new one to refresh every link. A link to a page that doesn't exist is shown as missing. Only `http:`, `https:`, `mailto:` and relative `href`s are used.\n- `search` feeds a suggestion menu that opens when you type `[[`. Arrow keys move through it, Enter or Tab inserts the page, Escape closes it.\n- Typing the closing `]]` of `[[…]]` also makes a link.\n- Clicking opens a link in a read-only document; while editing, Cmd/Ctrl-click opens it. `onOpen` handles opening; without it, the browser follows `href`.\n- Everything is optional and reactive. With no `wikiLinks`, links still parse, render and round-trip.\n\nParsing is exact: `[[a#b|c]]` reads as target `a`, heading `b`, label `c` (split at the first `|`, then the first `#`) and writes back unchanged. Inside a table, a label's pipe is written `\\|` (`[[a\\|c]]`, as Obsidian does), and that form reads the same anywhere. Commonmark keeps its meaning where it has one: `[[a]](url)`, and `[[a]][ref]` with `ref` defined, stay ordinary links; `[[a]]` stays a reference link when the document defines `[a]:`; `\\[\\[a]]` stays text. A link can't sit inside a code span: applying code formatting over one splits the span around it. `remarkWikiLinks` from `blintz/markdown` is the same grammar for servers.\n\n## Diagrams\n\nPass a mermaid loader and ` ```mermaid ` code blocks are drawn as diagrams under their source:\n\n```tsx\n<MarkdownEditor value={md} onChange={setMd} mermaid={() => import(\"mermaid\")} />\n```\n\n- `mermaid` is an optional peer dependency (version 10 or later); install it in your app. Blintz calls the loader the first time a diagram needs drawing, so documents without diagrams never load it, and your app can share the same copy: Blintz draws with your mermaid settings (its own are `securityLevel` and `theme`, and theme colours come from the editor's palette rather than your `themeVariables`) and puts them back after each diagram. The loader can be an inline function; re-rendering your component won't re-draw diagrams.\n- Diagrams follow the editor's light or dark theme and re-draw when it changes, and when you pause typing. Rendering is strict (`securityLevel: \"strict\"`), the SVG is sanitized before it's shown, and a link in a diagram opens in a new tab. A load or a drawing that hangs is given up on after a few seconds, so it never holds up other diagrams.\n- A diagram with a syntax error shows the error instead.\n- The slash menu gains a **Diagram** item, and the language picker a `mermaid` entry, so any code block can become a diagram.\n- Without `mermaid`, these blocks stay ordinary code blocks; passing or removing it later updates them in place. Either way the markdown is unchanged.\n\n## Collaboration\n\nSeveral people (and agents) can edit one document at once through [Yjs](https://yjs.dev). `blintz/collab` binds an editor to a shared `Y.XmlFragment`, and your provider (y-websocket, Hocuspocus, your own) carries the updates:\n\n```tsx\nimport { MarkdownEditor } from \"blintz\";\nimport { collaboration } from \"blintz/collab\";\n\nconst plugins = useMemo(\n  () => [collaboration({ fragment: ydoc.getXmlFragment(\"prosemirror\"), awareness: provider.awareness, user: { name: \"Ada\", color: \"#2f6fde\" } })],\n  [ydoc, provider],\n);\n\n<MarkdownEditor value=\"\" onChange={saveMarkdown} plugins={plugins} />;\n```\n\n- **Remote edits** appear in place, and cursors and selections survive them. Other people's cursors show with their name and color.\n- **Undo** reverts only this person's own edits. The editor's built-in history steps aside.\n- **Markdown is still the saved form.** `onChange` reports the document after every change, including other people's. It stays quiet until the shared document first arrives, so an editor that mounts before the provider syncs never reports an empty page.\n- **`value` is ignored** while `collaboration()` is loaded: the shared document is the source of truth, and replacing it would overwrite everyone's work. Change the document with `applyMarkdownToYDoc` instead.\n- **Undo inside code blocks** is the same per-person undo.\n- **`yjs`, `y-prosemirror` and `y-protocols`** are optional peer dependencies, imported only by `blintz/collab`.\n\n### On the server\n\nThe same entry runs with no DOM and no React, in Node (22 or later), a worker thread or the browser:\n\n```ts\nimport { applyMarkdownToYDoc, createMarkdownModel, readYDoc, yDocToMarkdown } from \"blintz/collab\";\n\nconst model = await createMarkdownModel(); // once per process or worker\n\napplyMarkdownToYDoc(model, ydoc, markdown); // seed a document before editors connect\n\nlet { markdown: current, base } = readYDoc(model, ydoc); // an agent reads…\n({ base } = applyMarkdownToYDoc(model, ydoc, edited, { base })); // …writes its change, and keeps the new base\n```\n\n`applyMarkdownToYDoc` changes as little as it can. Unchanged blocks keep their identity, edited text changes character by character, and writing identical content changes nothing. With the `base` from `readYDoc`, only the writer's own change (base to new markdown) is applied, so whatever people typed since the read stays. Without `base`, the document is made to equal the markdown.\n\nA few rules for `base`:\n\n- Every write returns a fresh `base`. Use it for the next write, or read again. Replaying the same base twice applies the change twice.\n- A `base` from another copy of the document is refused with an error. That happens, for example, after the server rebuilds the Y.Doc from saved markdown. Read again from the live document.\n- Two writers changing the same words from one base both land, and their edits interleave. An edit to a block someone else deleted meanwhile is dropped, as in any CRDT.\n\nSeed documents on the server: an editor shows what the shared fragment holds, so an empty fragment means an empty page.\n\n`model.source(markdown)` gives `document(markdown)` together with where its text came from: `toSource(from, to)` maps a document range to raw ranges exactly as the editor's `port.range` does, and `fromSource(start, end)` maps a raw range back to the text inside it. `@blintz/comments/core` uses it to place comment threads on the server.\n\nIn Node, Milkdown's internal timers need the global `addEventListener` and `dispatchEvent`. `createMarkdownModel` adds those two functions (and `removeEventListener`), backed by a private `EventTarget`, only when they are missing. Nothing else is added. Those timers also leave a few seconds of pending `setTimeout`s, so a short-lived script or worker exits about 3 seconds after its last `createMarkdownModel`.\n\n## Why Blintz\n\nMilkdown's [Crepe](https://milkdown.dev) is its ready-made editor on top of ProseMirror. Crepe builds its UI (toolbars, menus, node views) in Vue, so dropping it into a React app means bundling and bridging a second framework. Blintz gives you the same editing experience in React, and it treats markdown as the source of truth, so what you type comes back as clean markdown when you save (handy when you store the markdown).\n\nIt works at the seam Milkdown itself draws. The engine is framework-agnostic: ProseMirror and remark, the schema, commands, input rules, keymaps, and the provider controllers that drive tooltips, menus, and handles. Blintz keeps all of that from `@milkdown/kit`. It rewrites only the view layer in React, mounting components through [`@prosemirror-adapter/react`](https://github.com/prosemirror-adapter/prosemirror-adapter)'s node-view and plugin-view factory hooks.\n\n## Design goals\n\n1. **Round-trip fidelity comes first.** Load markdown, edit, save markdown, and the result stays faithful and clean. Blintz turns off Milkdown's empty-line `<br />` behavior so stored prose stays free of HTML noise: blank lines collapse the markdown-native way, and standalone legacy `<br />` artifacts are stripped on load. Inline HTML breaks become markdown hard breaks.\n2. No Vue. Blintz never imports `@milkdown/crepe`, the Vue-bundled `@milkdown/kit/component/*`, or `createApp`. The build is checked for Vue runtime markers; the only allowed `vue` string is CodeMirror's `.vue` syntax pack.\n3. A small, host-agnostic API: one controlled component, no router or store assumptions, themed with CSS variables.\n4. Works on React 18 and 19. `react` and `react-dom` are peer deps.\n\n## Features\n\n- Block editing: a slash `/` command menu and a floating `+`/`::` block handle. Drag-to-reorder keeps list items in the right list and renumbers them.\n- Lists: ordered, bullet, and task lists with live numbering.\n- Code blocks: a real CodeMirror editor per block, with a language picker and a preview.\n- Diagrams: ` ```mermaid ` blocks drawn with your copy of mermaid, loaded only when needed (see [Diagrams](#diagrams)).\n- Math: inline `$…$` and block math via KaTeX, round-tripping to `$$…$$`.\n- Images: uploader or URL input, with captions.\n- Tables: GFM tables with column and row drag handles, plus a keyboard and touch menu to add, move or delete rows and columns. Columns without an alignment stay unaligned (`| - |`), new tables included.\n- Links: hover preview and an inline edit tooltip.\n- Wiki links: `[[Page#Heading|label]]` with host resolution and a `[[` suggestion menu (see [Wiki links](#wiki-links)).\n- Collaboration: real-time editing through Yjs, with cursors, per-person undo and server-side markdown merges (see [Collaboration](#collaboration)).\n- Embeds: block directives (`::chart{…}`, `:::callout … :::`) rendered by your own React components (see [Embeds](#embeds)).\n- A selection toolbar (bold, italic, strikethrough, code, link), a block placeholder, a virtual cursor, and dark mode.\n\nIcons come from [Lucide](https://lucide.dev), rendered through a sanitized `<Icon>`.\n\n## Theming\n\nBlintz ships its own scoped typography, so importing its stylesheet does not reset the host app. Body text is 16px with a 1.65 line height, lists have one marker, and code, tables and editing controls share one palette.\n\nUse `theme=\"light\"` or `theme=\"dark\"` to set the palette. The default, `theme=\"auto\"`, follows the nearest `.light`, `.dark`, or `data-theme=\"light|dark\"` ancestor, then the OS preference. A theme change updates the mounted editor without resetting content, selection or history.\n\n```tsx\n<MarkdownEditor value={md} onChange={setMd} theme={appTheme} />\n```\n\nSet public `--blintz-*` variables on the editor's `className` or any ancestor to match your app. Variables contain complete CSS colors, not raw HSL channels. Both theme palettes respect these overrides.\n\n```css\n.document-editor {\n  --blintz-color-background: var(--app-background);\n  --blintz-color-on-background: var(--app-text);\n  --blintz-color-surface: var(--app-surface);\n  --blintz-color-on-surface: var(--app-text);\n  --blintz-color-primary: var(--app-link);\n  --blintz-font-default: var(--app-font);\n  --blintz-font-title: var(--app-font);\n  --blintz-font-code: var(--app-monospace);\n}\n```\n\nColor inputs: `--blintz-color-` followed by `background`, `on-background`, `surface`, `surface-low`, `on-surface`, `on-surface-variant`, `outline`, `primary`, `secondary`, `on-secondary`, `inverse`, `on-inverse`, `inline-code`, `error`, `hover`, `selected`, or `inline-area`. Supply contrasting foreground/background pairs together.\n\nSyntax inputs: `--blintz-code-keyword`, `--blintz-code-string`, `--blintz-code-number`, `--blintz-code-comment`, `--blintz-code-function`, `--blintz-code-type`, and `--blintz-code-operator`. CodeMirror reads these live, including when switching themes.\n\nLayout inputs: `--blintz-font-size`, `--blintz-padding`, `--blintz-readonly-padding`, and `--crepe-block-handle-gutter`. The default gutter shrinks on narrow screens. Read-only documents do not reserve room for editing handles. `--blintz-shadow-1` and `--blintz-shadow-2` customize floating controls.\n\nExisting `--crepe-*` feature variables remain available as outputs. Legacy overrides must target `.milkdown` directly with sufficient specificity; ancestor overrides should use the new `--blintz-*` inputs. Remove external `.prose` classes and Nord-specific CSS from the editor surface, since Blintz now owns the complete prose styling.\n\n## Architecture\n\n- `src/MarkdownEditor.tsx`: the public component and the provider stack (`MilkdownProvider` over `ProsemirrorAdapterProvider`, with an `EditorCtxProvider` so portal-rendered views can read the live Milkdown `Ctx`).\n- `src/useBlintzEditor.ts`: the engine baseline and feature registration, a React rebuild of Crepe's `CrepeBuilder` core, assembled from `@milkdown/kit` (commonmark, gfm, history, indent, trailing, clipboard, upload, listener), then each feature.\n- `src/features/*`: one folder per feature. Each reuses the engine (schema, commands, providers) and rewrites only the view.\n- `src/shared/*`: the sanitized `Icon`, the ctx-to-React bridge, and `GroupBuilder`.\n- `src/theme/*`: feature CSS, the `--crepe-*` tokens, and the dark-mode variables.\n\n## Development\n\nThe repo ships a playground that mounts Blintz next to other React markdown editors and shows live markdown output for round-trip comparison.\n\n```bash\nnpm install\nnpm run typecheck   # the package and its React 18/19 consumers\nnpm test            # vitest, including the empty-paragraph round-trip guard\n```\n\n## Dependency troubleshooting\n\nProseMirror plugins must share the same installed `prosemirror-model`, `prosemirror-state`, and `prosemirror-view` versions. An older pnpm lockfile can retain separate copies after updating Blintz. The editor may render correctly until a node selection throws an error such as `DecorationGroup` or `localsInner`, because objects from the two copies fail identity checks.\n\nRun `pnpm why prosemirror-model`, `pnpm why prosemirror-state`, and `pnpm why prosemirror-view` to inspect the dependency paths. Update and deduplicate compatible versions together. If the host still retains separate copies, use its `pnpm.overrides` to select one compatible version of each package for the whole app, then reinstall. Avoid forcing versions outside the dependent packages' supported ranges. Restart the dev server and clear its dependency prebundle cache after changing the graph.\n\n## License and attribution\n\n[MIT](./LICENSE), © Dork Labs. Blintz is a derivative of Milkdown's Crepe (MIT, © Mirone) and bundles other open-source work: ProseMirror, remark, KaTeX, CodeMirror, Lucide, Floating UI, and DOMPurify. See [ATTRIBUTION.md](./ATTRIBUTION.md) for the full credits and the upstream-sync notes.\n\n## Original-source locations\n\nHosts can ask where a selection or task came from in the original markdown. Add `onSourceReady` to receive a stable `MarkdownSourcePort`. Add `onSourceSelection` to receive selection changes.\n\nA mapped result includes an opaque `generation`. Its ranges use UTF-16 string offsets: `start` is inclusive and `end` is exclusive. Slice the exact snapshot text with those offsets. Lines and columns start at one. CRLF counts as one line break; the initial BOM counts as one column. These are not UTF-8 byte offsets.\n\nMappings come from the parser's AST positions and the editor model. Blintz never searches rendered text or the DOM for a matching task. Repeated tasks keep separate ranges. Decoded entities, escaped text, generated breaks, code and frontmatter may return `unavailable` instead of a guessed selection.\n\nEvery model edit invalidates the old generation. Use `port.generation()` to read the current one. A request carrying an older generation returns `stale`. A retained port returns `disposed` after unmount.\n\nAfter a host confirms new raw text, call `port.bindSource(text, port.generation())`. Blintz parses that exact text independently. It accepts the new mapping only if the parsed document equals the live editor model, allowing the built-in heading IDs and empty trailing paragraph generated by the unextended default editor. Authored tail content and custom trailing configurations must match exactly. Otherwise it returns `model-mismatch`. This call never replaces the document, moves the selection or clears Undo history. It is not a save receipt. The host must supply the actual text and verify its own file version.\n\nThe optional `sourceRevision` prop identifies an external source revision, including equal-text replacements. Changing callbacks or this revision does not remount the editor.\n\n### Mapping any range\n\n`port.range(from, to)` maps an editor range (ProseMirror positions, `[from, to)`) to raw markdown ranges, with the same evidence rules as `selection()`. For example, `@blintz/comments` gives a thread's range so an agent can quote it from the file.\n\nAny entry in `plugins` normally makes `bindSource` require an exact model match, because a plugin could change how markdown is parsed. A plugin that brings its own undo (as `collaboration()` does) sets `replacesHistory: true`, and the editor leaves out its built-in history. A plugin that owns the document (also `collaboration()`) sets `ownsDocument: true`, and the editor ignores `value` after mount. `isCollaboratorChange(tr)` tells a collaborator's change from the editor's own edits. A plugin that only adds decorations, views or key handling can say so with `preservesSourceMapping: true` (e.g. `Object.assign(myPlugin, { preservesSourceMapping: true })`); `@blintz/comments` does.\n\n### Document resets\n\nWhen `value` changes to something the editor didn't emit, Blintz replaces the whole document in one transaction tagged with `DOCUMENT_RESET_META` (exported). That replacement is kept out of undo history, so undo never turns the new document back into the old one. A plugin that tracks positions can check `tr.getMeta(DOCUMENT_RESET_META)` to tell a newly loaded document from a user who selected everything and typed.\n\n### Host-controlled tasks\n\nPass `onTaskToggleRequest` to handle task changes outside the editor. The callback receives `{ generation, task, done }` before any local checkbox change. `task.marker` identifies the exact `[ ]`, `[x]` or `[X]` span.\n\nBlintz does not change the checkbox or report a save when this callback exists. The host must perform its authorized write and verify the acknowledgement. Then call `port.applyConfirmedTaskToggle(request, confirmedText)` with the original request and the exact confirmed raw text. Blintz accepts only the requested single marker-character change against the current mapped task; stale requests and changes to unrelated text refuse. A no-op preserves an existing uppercase `[X]`.\n\nA successful result updates the current task node and raw mapping in place. It preserves the editor, selection, focus, scroll position and prior Undo history, and does not add the already-persisted marker to local Undo history. This confirmation does not call `onChange` and therefore does not initiate a second full-content save. Later user edits still call `onChange` normally. Update the controlled `value` and `sourceRevision` to the acknowledged text and revision; the corresponding acknowledgement update preserves the mapping. An independent subsequent revision, including an equal-text revision, invalidates older requests.\n\nThe method is a UI update, not a persistence receipt or write permission. If it returns `unavailable`, reconcile against the current host source instead of applying an old request to a new file revision. Failed writes leave the checkbox unchanged. Unmapped tasks show a static indicator. Read-only tasks have no checkbox control.\n\nWithout this callback, editable tasks keep their normal local toggle behavior. Source locations never grant write permission and do not verify a server-side file version.\n\nSource callbacks become active after their React render commits. Suspended render\nattempts cannot remove the current task interceptor. A late or replaced\n`onSourceReady` receives the current port without recreating the editor. Each\nactual editor lifetime has its own port; Activity hide/show can recreate the\neditor from the latest committed host source and revision, and ports from the\ndestroyed lifetime remain disposed. Suspended source updates do not become seeds.\n","readmeFilename":"README.md"}