{"_id":"md4w","_rev":"24-2ebfbf9c6c69219fe5467522b8356ccc","name":"md4w","dist-tags":{"latest":"0.2.7"},"versions":{"0.0.1":{"name":"md4w","version":"0.0.1","license":"MIT","_id":"md4w@0.0.1","maintainers":[{"name":"ije","email":"i@jex.me"}],"dist":{"shasum":"756b23c5948bf78bc65bfa76dd130bfdd039c207","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.0.1.tgz","fileCount":5,"integrity":"sha512-KwPdygOMrfujvGLoQMEPpGcEJfRmWxgzaD4YhgN5sxmDpeFgwV6LU3NMbmyJdm3SY7wxRo/T0LCdA9NVobFP3A==","signatures":[{"sig":"MEQCIGMXX/4AhLv0rv4oaA/wYxgNrFs2SyQwZV+DXCm2+kjOAiBYDuqlw6x0frcv3D1QXuQwb+6oFnHX6Le5v7++L+zMAg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101321},"main":"md4c.js","type":"module","module":"md4c.js","gitHead":"49c08c30b94158eae3368158009a52fe41e02c2e","_npmUser":{"name":"ije","email":"i@jex.me"},"_npmVersion":"10.2.3","description":"A WebAssembly port of md4c - a Markdown parser written in C.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.0.1_1705406111381_0.05130721769943869","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"md4w","version":"0.0.2","license":"MIT","_id":"md4w@0.0.2","maintainers":[{"name":"ije","email":"i@jex.me"}],"dist":{"shasum":"9ae1b21c638aca7801297d7456deecb80592dea1","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.0.2.tgz","fileCount":5,"integrity":"sha512-q5E62CQDC9rN5ATE/QCSkzSCEs8+BwgLZHpumFcCTYhLb1YQlXUD2ic2meLxXsR1H61WFLqxXKkQwnR/s1g5ig==","signatures":[{"sig":"MEYCIQCM18KeBb+pcNDFskJcWzkNMoefkkBK5Wln/zNta8djVAIhAIDrJTtGwCLGbqBnp/F8snL7jh4Pd22rNwcOqi9yxl8t","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101536},"main":"md4c.js","type":"module","module":"md4c.js","gitHead":"a8bbbcbf020b52de167d09bde64863d26dde4909","_npmUser":{"name":"ije","email":"i@jex.me"},"_npmVersion":"10.2.3","description":"A WebAssembly port of md4c - a Markdown parser written in C.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.0.2_1705411677615_0.9676281241769424","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"md4w","version":"0.0.3","license":"MIT","_id":"md4w@0.0.3","maintainers":[{"name":"ije","email":"i@jex.me"}],"dist":{"shasum":"949cf39a4235c67f497a9c4fd1d88115e7f49d30","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.0.3.tgz","fileCount":6,"integrity":"sha512-DzbCsjPk+AqO6CCj+w64jssK0tjwbmNj+i15uPVtkkZ3+gFBhGAb6CFkgaMkBSBjRvjRHAovvxjiDgeiUzpy8Q==","signatures":[{"sig":"MEQCIEaj2Clxd3eHo+VJgzvanN4BdJosNeNlWRELGOmnzdMhAiB4Ru7NCMsL+oyANlnFQLDWrmffrrCJyzu2UlxuwPjpvg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100892},"main":"index.js","type":"module","module":"index.js","exports":{".":{"import":"./index.js","unwasm":"./unwasm.js","workerd":"./unwasm.js"}},"gitHead":"b80fdb24d6882858bbd8672c631e0ebdf41c11b7","_npmUser":{"name":"ije","email":"i@jex.me"},"_npmVersion":"10.2.3","description":"A WebAssembly port of md4c - a Markdown parser written in C.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.0.3_1705486537843_0.00578582328927113","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"md4w","version":"0.0.4","license":"MIT","_id":"md4w@0.0.4","maintainers":[{"name":"ije","email":"i@jex.me"}],"dist":{"shasum":"619c1060aef1cb01165019797e51c1d8cefdcca1","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.0.4.tgz","fileCount":6,"integrity":"sha512-EvEPOIykDJ9/nHEUrdQVC4I93m/GWeq/TLcoFwfypB8ht2W7pmyFdVO79ceHkDtpp6Dx84HlREy4+p+IX+FDrQ==","signatures":[{"sig":"MEUCIECWv9pPNhZC0p6wtKEIWbpLTDnbhNXjZMC/5jI/FHleAiEA3cLt+srjMJVpllGf4XRCjC+3RI09ne494f5gu46QjPo=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100942},"main":"index.js","type":"module","module":"index.js","exports":{".":{"import":"./index.js","unwasm":"./unwasm.js","workerd":"./unwasm.js"}},"gitHead":"bbdd01d29a6035095ef2a8d543a56ac024b3154e","_npmUser":{"name":"ije","email":"i@jex.me"},"_npmVersion":"10.2.3","description":"A WebAssembly port of md4c - a Markdown parser written in C.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.0.4_1705487215791_0.11338814135098207","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"md4w","version":"0.0.5","license":"MIT","_id":"md4w@0.0.5","maintainers":[{"name":"ije","email":"i@jex.me"}],"dist":{"shasum":"f15fd301ad4a82e3532ee972238a9583e37b2bdd","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.0.5.tgz","fileCount":6,"integrity":"sha512-Dl58chf5NEkp41uYGGgz1y0AyZz/IbWhJ58hO1XqJxyljGFmqUq7el1u2fNtNjo95jCUIOooisAV9Xb2oSewBg==","signatures":[{"sig":"MEUCIQDQLPn3NRDJu34DMi0HMTSBLKPWhJfleAqLAjrWGvHB9AIgWn8HiSmWipUkt98dvRyyvE1GgPUTc8vdlfigOl5yS6I=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":100572},"main":"index.js","type":"module","module":"index.js","exports":{".":{"import":"./index.js","unwasm":"./unwasm.js","workerd":"./unwasm.js"}},"gitHead":"daafb9881f1b4abec5a2c65e74f6bf8f2741c06c","_npmUser":{"name":"ije","email":"i@jex.me"},"_npmVersion":"10.2.3","description":"A WebAssembly port of md4c - a Markdown parser written in C.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.0.5_1705491291188_0.5993524145096059","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"md4w","version":"0.0.6","license":"MIT","_id":"md4w@0.0.6","maintainers":[{"name":"ije","email":"i@jex.me"}],"dist":{"shasum":"05900223967d3aa352f9b61ab024f91d0c3e31da","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.0.6.tgz","fileCount":5,"integrity":"sha512-8NQNsT1csK4qa8xSC+7d0ww8fSxVFTMJqTRl/o8MI1mI/Bpi5Ci9/GoQMavsrvdgLba+bd5xU9hdB0+GLGgcJA==","signatures":[{"sig":"MEQCIFXEYHg+fSQ7ostYb12FjmrSx84JdgNrHRDc4Qk6en6XAiAqVPiiKv7a+rD6zHj18qEdXGs3csRqMyZB6JrdiHm1xw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101261},"main":"index.js","type":"module","module":"index.js","exports":{".":{"import":"./index.js","unwasm":"./unwasm.js","workerd":"./unwasm.js"}},"gitHead":"6e19eeb73d1d75fced6018e5b70ff7b2bf05a750","_npmUser":{"name":"ije","email":"i@jex.me"},"_npmVersion":"10.2.3","description":"A WebAssembly port of md4c - a Markdown parser written in C.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.0.6_1705501634678_0.9788883277719405","host":"s3://npm-registry-packages"}},"0.0.7":{"name":"md4w","version":"0.0.7","license":"MIT","_id":"md4w@0.0.7","maintainers":[{"name":"ije","email":"i@jex.me"}],"dist":{"shasum":"09bb756e3a5660089ffe7a36a31fb3fd6ebb0df1","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.0.7.tgz","fileCount":5,"integrity":"sha512-0spkCFG6CCnw3wxx6Zy5kitKSSFnl57NMp0/gI5iZs50B8DholmLR8InOH1YwLgau7DzF2LENZbOAdT43VDTBw==","signatures":[{"sig":"MEQCIHCppKOTjwBOtfc9WmIUqa9BoaluEw5zItFwnGIv37zxAiAOBtJn5uwgFpsIemrd5QtB8LALcRaETy5il1r/2gZ8Ew==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":101466},"main":"index.js","type":"module","module":"index.js","exports":{".":{"import":"./index.js","unwasm":"./unwasm.js","workerd":"./unwasm.js"}},"gitHead":"8b5a888b972f700982880689ae8e687798fb3a88","_npmUser":{"name":"ije","email":"i@jex.me"},"_npmVersion":"10.2.3","description":"A WebAssembly port of md4c - a Markdown parser written in C.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.0.7_1705502637386_0.2257403654232184","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"md4w","version":"0.1.0","license":"MIT","_id":"md4w@0.1.0","maintainers":[{"name":"ije","email":"i@jex.me"}],"dist":{"shasum":"fc82274c61351245a001e9d42ceb25ce9c0875d3","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.1.0.tgz","fileCount":6,"integrity":"sha512-m6PTczXLOzbQ7Zar64BGOKBBym5deGO68/JbNHOItJJ5KIfjaMr0VAm+egzK8m3upmdOJPa5CBxvOzd3ZnlNTw==","signatures":[{"sig":"MEUCIF6WC8/47JeynVCxHxKpWgxQMPe8n0I8Fb0i6hiGxULHAiEAkM4Kv5CmgFmI0dzf6ub2vFbPsiLhmaY2DepApRc3sx8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62426},"main":"index.js","type":"module","types":"md4w.d.ts","module":"index.js","exports":{".":{"types":"./md4w.d.ts","import":"./index.js","unwasm":"./unwasm.js","workerd":"./unwasm.js"}},"gitHead":"cd951524383fd277c2473596c918a7a48f7feac0","_npmUser":{"name":"ije","email":"i@jex.me"},"_npmVersion":"10.2.3","description":"A **Markdown-to-HTML** Parser written in Zig & C, compiled to WebAssymbly for all JavaScript runtimes.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.1.0_1707322622724_0.9376531282077551","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"md4w","version":"0.1.1","license":"MIT","_id":"md4w@0.1.1","maintainers":[{"name":"ije","email":"i@jex.me"}],"dist":{"shasum":"2e335d48e09a61618295348d658d63da9c931a74","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.1.1.tgz","fileCount":6,"integrity":"sha512-vhpblpH+1yFZrH3D/nfoPUzVSLiVIhnAJElUGJn03VxyaT8S2/nzTefqkpJ3+H//Ekhf0nXMvOVqCc1nIHeemA==","signatures":[{"sig":"MEYCIQDxvMQbrWhLfrFoTVt0tr04ndtVQGDNeepopjZAq8B6lQIhAMl8Xpl3Fp9NQej2Erj2bSEoaDQMDHXfhqvJCVLlQ8mQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62147},"main":"index.js","type":"module","types":"md4w.d.ts","module":"index.js","exports":{".":{"types":"./md4w.d.ts","import":"./index.js","unwasm":"./unwasm.js","workerd":"./unwasm.js"}},"gitHead":"4d0eb2417279fe29b321103234a9f9679e4fd3d7","_npmUser":{"name":"ije","email":"i@jex.me"},"_npmVersion":"10.2.3","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all Javascript Runtimes.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.1.1_1707391788471_0.43587704790383053","host":"s3://npm-registry-packages"}},"0.1.2":{"name":"md4w","version":"0.1.2","license":"MIT","_id":"md4w@0.1.2","maintainers":[{"name":"ije","email":"i@jex.me"}],"dist":{"shasum":"a1401244b0a1408899822b8270ae1fbe27da2b4e","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.1.2.tgz","fileCount":6,"integrity":"sha512-FPbwbwCTYB0gLJWwHBJxKgtUni7r0yvpfmPSYwYDkkL/kNphvz6CYyCXEBysXEiDQPzwICnPjanYy20eeaftVQ==","signatures":[{"sig":"MEUCIQCXCCBI1uaIBtQrP5ONRZ1Ke34+DdIMSBpeMdGZ/gbFgAIgeA1P9uIRhzdglBXA94RX4TLPcQRn1dfgxz3D51Ll/3s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62162},"main":"index.js","type":"module","types":"md4w.d.ts","module":"index.js","exports":{".":{"types":"./md4w.d.ts","import":"./index.js","unwasm":"./unwasm.js","workerd":"./unwasm.js"}},"gitHead":"8331fb785aafe76828fa7dfbae632e748a356028","_npmUser":{"name":"ije","email":"i@jex.me"},"_npmVersion":"10.2.3","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all Javascript Runtimes.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.1.2_1707579201039_0.3254951151368437","host":"s3://npm-registry-packages"}},"0.1.3":{"name":"md4w","version":"0.1.3","license":"MIT","_id":"md4w@0.1.3","maintainers":[{"name":"ije","email":"i@jex.me"}],"dist":{"shasum":"b0b8add4f9c1d618abb92863b888492e312d7546","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.1.3.tgz","fileCount":6,"integrity":"sha512-GRUkN6eyOQbmYwrKgT3Yez8/OR/u26WdEfOccafCTsgNcYUxK3hs8yjAza7OUVSP9dBMOooWBoo6NahHEvuUuQ==","signatures":[{"sig":"MEYCIQCzqiOcB6rz5rcXpNvynC6jehQkIZXZ4wDqnAnZ2VJMPQIhAPspMg1gKBB7egyLQAL1LV+aXkm7OuU6AoxPcNXBnUwU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62356},"main":"index.js","type":"module","types":"md4w.d.ts","module":"index.js","exports":{".":{"types":"./md4w.d.ts","import":"./index.js","unwasm":"./unwasm.js","workerd":"./unwasm.js"}},"gitHead":"7ccc5bc37f6467d44c07916357dd33904772c4ae","_npmUser":{"name":"ije","email":"i@jex.me"},"_npmVersion":"10.2.3","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all Javascript Runtimes.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.1.3_1707582583537_0.6174311847130756","host":"s3://npm-registry-packages"}},"0.1.4":{"name":"md4w","version":"0.1.4","license":"MIT","_id":"md4w@0.1.4","maintainers":[{"name":"ije","email":"i@jex.me"}],"homepage":"https://github.com/ije/md4w#readme","bugs":{"url":"https://github.com/ije/md4w/issues"},"dist":{"shasum":"3f1e06f7d2a160b2c98948b81d7e1dbcf6e092fe","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.1.4.tgz","fileCount":6,"integrity":"sha512-2em/Y8CkkBbeYZ6VaSKkQ29ihe0BV2dvfSHeEUOs5NvRmS2srS3d3jM5kuHjFilwZ17OpsWVFRVSSbH0muhvtA==","signatures":[{"sig":"MEQCIAE+gqDBWofhP3RdEdtoizGS0Awtztv+OVqhJxxF2OSgAiBn+wnDAB4WIUVkVzr1Jb6SDCmLkYwzB1f1SbnSg5Jrbw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":62555},"main":"index.js","type":"module","types":"md4w.d.ts","module":"index.js","exports":{".":{"types":"./md4w.d.ts","import":"./index.js","unwasm":"./unwasm.js","workerd":"./unwasm.js"}},"gitHead":"b57bab75cc6df6e7428523fcf8b9943618b690af","_npmUser":{"name":"ije","email":"i@jex.me"},"repository":{"url":"git+https://github.com/ije/md4w.git","type":"git"},"_npmVersion":"10.2.3","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all Javascript Runtimes.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.1.4_1707582961265_0.4235684055500577","host":"s3://npm-registry-packages"}},"0.1.5":{"name":"md4w","version":"0.1.5","license":"MIT","_id":"md4w@0.1.5","maintainers":[{"name":"ije","email":"i@jex.me"}],"homepage":"https://github.com/ije/md4w#readme","bugs":{"url":"https://github.com/ije/md4w/issues"},"dist":{"shasum":"2705cec558c47c8151e7493bdedb0140cdd42815","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.1.5.tgz","fileCount":7,"integrity":"sha512-joyRy72ff7togmRQg97ltER3vYLEnYebvmvdhNJltm8pW4jfVrugetjyMtNY9j+eY+SLrz7/IVbUmeSERtaElg==","signatures":[{"sig":"MEYCIQDeNogTQYwmrhieSdF+6VPnMOUZFK85lAH9rSEKpxV3AQIhAL873M7sQePhAknKZRls6Rb4LY2erPaQAfQpie92aSAH","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":68510},"main":"index.js","type":"module","types":"md4w.d.ts","module":"index.js","exports":{".":{"types":"./md4w.d.ts","import":"./index.js","unwasm":"./unwasm.js","workerd":"./unwasm.js"}},"gitHead":"414bd1469c684a887f4a9c58be37bce117d25c3f","_npmUser":{"name":"ije","email":"i@jex.me"},"repository":{"url":"git+https://github.com/ije/md4w.git","type":"git"},"_npmVersion":"10.2.3","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all Javascript Runtimes.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.1.5_1707583101468_0.24345561175553332","host":"s3://npm-registry-packages"}},"0.1.7":{"name":"md4w","version":"0.1.7","license":"MIT","_id":"md4w@0.1.7","maintainers":[{"name":"ije","email":"i@jex.me"}],"homepage":"https://github.com/ije/md4w#readme","bugs":{"url":"https://github.com/ije/md4w/issues"},"dist":{"shasum":"0ce9f1c455b043cc9746d1e44c8452df17fd89a3","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.1.7.tgz","fileCount":8,"integrity":"sha512-ZN9V2WSXQPEpZgd0MrZxhegm3IDLXiKglcADADI28J44WqdsKKpOjLkw5Woe2PkSKgKvXdtTOhuwsTJ42Z6Ejg==","signatures":[{"sig":"MEUCIHRRxxBO1yBbAbOGGo+U55gBgTQ8rn6uqKzdjrWu9+xhAiEA2LEs7iu+G4thLXK1wpAeuTe3/qPJZoqLJ1FHwSBHySU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69551},"main":"./js/index.js","type":"module","types":"./js/md4w.d.ts","module":"./js/index.js","exports":{".":{"types":"./js/md4w.d.ts","import":"./js/index.js","unwasm":"./js/unwasm.js","workerd":"./js/unwasm.js"}},"gitHead":"b7529d120ea4aa62e9a76d7f949761d623e07f25","_npmUser":{"name":"ije","email":"i@jex.me"},"repository":{"url":"git+https://github.com/ije/md4w.git","type":"git"},"_npmVersion":"10.2.3","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all Javascript Runtimes.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.1.7_1707583399097_0.6046505219707197","host":"s3://npm-registry-packages"}},"0.1.8":{"name":"md4w","version":"0.1.8","license":"MIT","_id":"md4w@0.1.8","maintainers":[{"name":"ije","email":"i@jex.me"}],"homepage":"https://github.com/ije/md4w#readme","bugs":{"url":"https://github.com/ije/md4w/issues"},"dist":{"shasum":"4c46d465e375d489d6d23eb8639db9bd5b074434","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.1.8.tgz","fileCount":10,"integrity":"sha512-hGeVH9RVV00E15iZDwB0bH17uJW/vS6mm+j2X0zRMV3UsKRorwQshdX+FY2y0ZLAuCIeKl0iSugeCDuRb8APnA==","signatures":[{"sig":"MEYCIQDL0R1z3YpESyx89kpNi2BnfNsTy7PQquxrplN/9pE6KQIhAJ1gzZmc4fkVEcJGVKsxB6Yqs5PiGLh33IQF5Vl4HN40","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":103875},"main":"./js/index.js","type":"module","types":"./js/md4w.d.ts","module":"./js/index.js","exports":{".":{"types":"./js/md4w.d.ts","import":"./js/index.js","unwasm":"./js/unwasm.js","workerd":"./js/workerd.js"}},"gitHead":"e27bfcbd9ff93292266acce92bb4e569d20d0410","_npmUser":{"name":"ije","email":"i@jex.me"},"repository":{"url":"git+https://github.com/ije/md4w.git","type":"git"},"_npmVersion":"10.2.3","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all JS runtimes.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.1.8_1708348916610_0.9338167500578554","host":"s3://npm-registry-packages"}},"0.1.9":{"name":"md4w","version":"0.1.9","license":"MIT","_id":"md4w@0.1.9","maintainers":[{"name":"ije","email":"i@jex.me"}],"homepage":"https://github.com/ije/md4w#readme","bugs":{"url":"https://github.com/ije/md4w/issues"},"dist":{"shasum":"d4ba37a604a40175d384ddf07a6336690d859856","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.1.9.tgz","fileCount":10,"integrity":"sha512-Pqnc+vbWI8DPFR1dcfFiUDwc23M2+iJYGQ9eJ3TG3E60aSHtdDKPcYMrN+rAU6K+JOGoiopjwtsj+RFLCTVAcg==","signatures":[{"sig":"MEUCIDPHJSM4Iw4XJbh6bfXm5b4mTt5dTHBvPsXWyCtz1pxtAiEAiyQr3uhN+JL6uisfgEHgCW4NEioLxxUqavtitfYwYdc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":104139},"main":"./js/index.js","type":"module","types":"./js/md4w.d.ts","module":"./js/index.js","exports":{".":{"types":"./js/md4w.d.ts","import":"./js/index.js","unwasm":"./js/unwasm.js","workerd":"./js/workerd.js"}},"gitHead":"a0c7e7867e41309f545e50f88c0f25196f003fd0","_npmUser":{"name":"ije","email":"i@jex.me"},"repository":{"url":"git+https://github.com/ije/md4w.git","type":"git"},"_npmVersion":"10.2.3","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all JS runtimes.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.1.9_1708359698415_0.34942466204961","host":"s3://npm-registry-packages"}},"0.2.0":{"name":"md4w","version":"0.2.0","license":"MIT","_id":"md4w@0.2.0","maintainers":[{"name":"ije","email":"i@jex.me"}],"homepage":"https://github.com/ije/md4w#readme","bugs":{"url":"https://github.com/ije/md4w/issues"},"dist":{"shasum":"3e956506c40f464daef7161c8d3c79e7da575224","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.2.0.tgz","fileCount":10,"integrity":"sha512-n5LydhwAZDq4tD5cD44/06Epdse6AJlEJ1j7mC1pyGr3YdOnbOOTwbh/YoDEydbMzMkcmE3GJ8P/eD7nOCAfLw==","signatures":[{"sig":"MEYCIQCFeGH0pIg0vcyqrc2TSx+hrDqfQy0vjcy5PVuOYwmRzQIhAJ4x34wbE60TFGp/OTeOgYu1katrPFrTsTW6XtfvR9P0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":968971},"main":"./js/index.js","type":"module","types":"./js/md4w.d.ts","module":"./js/index.js","exports":{".":{"types":"./js/md4w.d.ts","import":"./js/index.js","unwasm":"./js/unwasm.js","workerd":"./js/workerd.js"}},"gitHead":"a2ff7220b2f0936ad992be0c4c03f59c6899efa8","_npmUser":{"name":"ije","email":"i@jex.me"},"repository":{"url":"git+https://github.com/ije/md4w.git","type":"git"},"_npmVersion":"10.2.3","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all JS runtimes.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.2.0_1708541026046_0.0016482864857045865","host":"s3://npm-registry-packages"}},"0.2.1":{"name":"md4w","version":"0.2.1","license":"MIT","_id":"md4w@0.2.1","maintainers":[{"name":"ije","email":"i@jex.me"}],"homepage":"https://github.com/ije/md4w#readme","bugs":{"url":"https://github.com/ije/md4w/issues"},"dist":{"shasum":"9bb527e6e058c040be64c5a599386a2a86811cfb","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.2.1.tgz","fileCount":10,"integrity":"sha512-fdTxB5giiIErpa8z6KbU1Ch0JIQ+NWVuNuzJ52mXDdxP8Ln2nbZOsIltbUfuq5+iL3VUz34ZtpbAOeHOx4xROw==","signatures":[{"sig":"MEYCIQCyn/SCAgQyGUnAxtu1UjPbDkA6ZaGlvuSYDDH0yjrHCwIhAItYS2lym8QvXBiB8HC91Y9H/FojRZAmOzCK+8IeaDbU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":968556},"main":"./js/index.js","type":"module","types":"./js/md4w.d.ts","module":"./js/index.js","exports":{".":{"types":"./js/md4w.d.ts","import":"./js/index.js","unwasm":"./js/unwasm.js","workerd":"./js/workerd.js"}},"gitHead":"fafcc9f23c917966aeca736d93f4761cf298ce56","_npmUser":{"name":"ije","email":"i@jex.me"},"repository":{"url":"git+https://github.com/ije/md4w.git","type":"git"},"_npmVersion":"10.2.3","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all JS runtimes.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.2.1_1708542036538_0.27926805755855466","host":"s3://npm-registry-packages"}},"0.2.2":{"name":"md4w","version":"0.2.2","license":"MIT","_id":"md4w@0.2.2","maintainers":[{"name":"ije","email":"i@jex.me"}],"homepage":"https://github.com/ije/md4w#readme","bugs":{"url":"https://github.com/ije/md4w/issues"},"dist":{"shasum":"3df4eb70ce19b231a5335590559be7622b51ce48","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.2.2.tgz","fileCount":10,"integrity":"sha512-dJwbVIueCp4HgI9Jg4I9pDVLiig1lAVXYqVmTrIVsobh3b50EtgQrXmFEzzRRR6HaK6xVqB/bd3Ac/Nt2kdwPA==","signatures":[{"sig":"MEUCIGnwiDPZ11KLNVKv+qFpLYgSH//3uzxzSOFjDVBbzHthAiEAyWSMirgerBWfgYcFZH/mDQy1vfY/HQnXmoCXfG0kP9U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":968600},"main":"./js/index.js","type":"module","types":"./js/md4w.d.ts","module":"./js/index.js","exports":{".":{"types":"./js/md4w.d.ts","import":"./js/index.js","unwasm":"./js/unwasm.js","workerd":"./js/workerd.js"}},"gitHead":"fafcc9f23c917966aeca736d93f4761cf298ce56","_npmUser":{"name":"ije","email":"i@jex.me"},"repository":{"url":"git+https://github.com/ije/md4w.git","type":"git"},"_npmVersion":"10.2.3","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all JS runtimes.","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.2.2_1708542227066_0.0684722489089249","host":"s3://npm-registry-packages"}},"0.2.3":{"name":"md4w","version":"0.2.3","license":"MIT","_id":"md4w@0.2.3","maintainers":[{"name":"ije","email":"i@jex.me"}],"homepage":"https://github.com/ije/md4w#readme","bugs":{"url":"https://github.com/ije/md4w/issues"},"dist":{"shasum":"ea264e7a98885eba69db4e37f42245bff673c921","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.2.3.tgz","fileCount":10,"integrity":"sha512-GC1FjLPkc0E5u0Hs4MpV9huz0Sq7vXMSmmvlf7G0y7+Rv2V7LDMsEJzYaoNMB4/VwfeqdI5Wb3ymrtwCbW2V0A==","signatures":[{"sig":"MEQCIArMW5TPzgbNCJL4FEgPd8yHQtRLIb4Num8US2kPYFp2AiAG2qZQlBDNYJ4cZc2DedZbwuERUvmC2ASIK+oCd6my4w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":968698},"main":"./js/index.js","type":"module","types":"./js/md4w.d.ts","module":"./js/index.js","exports":{".":{"types":"./js/md4w.d.ts","import":"./js/index.js","unwasm":"./js/unwasm.js","workerd":"./js/workerd.js"}},"gitHead":"8eb5495ea7aa8c2b5d72126d2ff7428baa3dc157","_npmUser":{"name":"ije","email":"i@jex.me"},"repository":{"url":"git+https://github.com/ije/md4w.git","type":"git"},"_npmVersion":"10.4.0","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all JS runtimes.","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.2.3_1708952290535_0.801470002124081","host":"s3://npm-registry-packages"}},"0.2.4":{"name":"md4w","version":"0.2.4","license":"MIT","_id":"md4w@0.2.4","maintainers":[{"name":"ije","email":"i@jex.me"}],"homepage":"https://github.com/ije/md4w#readme","bugs":{"url":"https://github.com/ije/md4w/issues"},"dist":{"shasum":"0c533ec44a01192b82032317204cd6bd0d6e65ce","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.2.4.tgz","fileCount":10,"integrity":"sha512-pqycPBtk1FfBrVkrMFkGF4BH9YzZCpqwy4zUv2wCtX+cfaf7z96sQk7GX1fGZZStdkr8dUbkwQu+0z/0nvQzow==","signatures":[{"sig":"MEUCIHXJnpc4GwpYrVtMnUCdRirFEWGNKvTGEekQgzE8DjC1AiEA5vYEj8RzgzPJlSyzhTPT34HJoqRQbWoXk3nznnpim44=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":968756},"main":"./js/index.js","type":"module","types":"./js/md4w.d.ts","module":"./js/index.js","exports":{".":{"types":"./js/md4w.d.ts","import":"./js/index.js","unwasm":"./js/unwasm.js","workerd":"./js/workerd.js"}},"gitHead":"2ba3fa43cb4acd02e1d5282a5ec37daeeacdae35","_npmUser":{"name":"ije","email":"i@jex.me"},"repository":{"url":"git+https://github.com/ije/md4w.git","type":"git"},"_npmVersion":"10.4.0","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all JS runtimes.","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.2.4_1708955329918_0.8633256454066165","host":"s3://npm-registry-packages"}},"0.2.5":{"name":"md4w","version":"0.2.5","license":"MIT","_id":"md4w@0.2.5","maintainers":[{"name":"ije","email":"i@jex.me"}],"homepage":"https://github.com/ije/md4w#readme","bugs":{"url":"https://github.com/ije/md4w/issues"},"dist":{"shasum":"906cba372d70c2af606176d28265ef58cca57f10","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.2.5.tgz","fileCount":10,"integrity":"sha512-nHM7r/XwfzvErj1muj3h1L3jsPB6whPUHF7CHBDSn10K2I9GCzTV98soLpcdluMzfgE+T/cEnksPvB6IImg/Gg==","signatures":[{"sig":"MEYCIQDyLNQXRwN/RipimTdyDU7d2qaCyEKOo0OxmSeqDqiP9AIhANs9QpNw88ozppTaI2doMox8opmg3nuV8rsu3T/tBlDq","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":969853},"main":"./js/index.js","type":"module","types":"./js/md4w.d.ts","module":"./js/index.js","exports":{".":{"types":"./js/md4w.d.ts","import":"./js/index.js","unwasm":"./js/unwasm.js","workerd":"./js/workerd.js"}},"gitHead":"f64aa1f1fd3dd37991eb70528c70f4ed9f0a63c9","_npmUser":{"name":"ije","email":"i@jex.me"},"repository":{"url":"git+https://github.com/ije/md4w.git","type":"git"},"_npmVersion":"10.4.0","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all JS runtimes.","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.2.5_1709311900409_0.9616417437093236","host":"s3://npm-registry-packages"}},"0.2.6":{"name":"md4w","version":"0.2.6","license":"MIT","_id":"md4w@0.2.6","maintainers":[{"name":"ije","email":"i@jex.me"}],"homepage":"https://github.com/ije/md4w#readme","bugs":{"url":"https://github.com/ije/md4w/issues"},"dist":{"shasum":"75f6c0d1430a75f09976c8d79fc3291db6659522","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.2.6.tgz","fileCount":10,"integrity":"sha512-CBLQ2PxVe9WA+/nndZCx/Y+1C3DtmtSeubmXTPhMIgsXtq9gVGleikREko5FYnV6Dz4cHDWm0Ea+YMLpIjP4Kw==","signatures":[{"sig":"MEQCIEGMWQ9JQXbyVAnbZEbfWluu8XUHGAKdnPgrPtc+dwEKAiAl6v8SZTkN8e1HLt5YO0AZGVt9rEgOMejn586NpuMlVQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":969449},"main":"./js/index.js","type":"module","types":"./js/md4w.d.ts","module":"./js/index.js","exports":{".":{"types":"./js/md4w.d.ts","import":"./js/index.js","unwasm":"./js/unwasm.js","workerd":"./js/workerd.js"}},"gitHead":"558893c097912390a07f547a38bd3d2dddf3cd44","_npmUser":{"name":"ije","email":"i@jex.me"},"repository":{"url":"git+https://github.com/ije/md4w.git","type":"git"},"_npmVersion":"10.4.0","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all JS runtimes.","directories":{},"_nodeVersion":"20.11.1","_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/md4w_0.2.6_1710498211942_0.7184558848822296","host":"s3://npm-registry-packages"}},"0.2.7":{"name":"md4w","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all JS runtimes.","version":"0.2.7","type":"module","module":"./js/index.js","main":"./js/index.js","types":"./js/md4w.d.ts","exports":{".":{"unwasm":"./js/unwasm.js","workerd":"./js/workerd.js","import":"./js/index.js","types":"./js/md4w.d.ts"}},"browser":{"node:process":false},"scripts":{"prepublishOnly":"zig build"},"repository":{"type":"git","url":"git+https://github.com/ije/md4w.git"},"license":"MIT","_id":"md4w@0.2.7","gitHead":"bc9b2a00f6ab81f02d2e36421f6b80ac984faad9","bugs":{"url":"https://github.com/ije/md4w/issues"},"homepage":"https://github.com/ije/md4w#readme","_nodeVersion":"24.0.0","_npmVersion":"11.3.0","dist":{"integrity":"sha512-lFM7vwk3d4MzkV2mija7aPkK6OjKXZDQsH2beX+e2cvccBoqc6RraheMtAO0Wcr/gjj5L+WS5zhb+06AmuGZrg==","shasum":"ea60232959cb85e31352d970c7ef4d8c3ec44b5f","tarball":"https://registry.npmjs.org/md4w/-/md4w-0.2.7.tgz","fileCount":10,"unpackedSize":967765,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEl9g9nIKVxk4njdb3+/MZSWRX/gAQRfV+XMSGormobcAiEA6iO9Nx5OXzzDhAJ6gTk1aAHY+CMgQCoZwVpOvJq4Kzk="}]},"_npmUser":{"name":"ije","email":"i@jex.me"},"directories":{},"maintainers":[{"name":"ije","email":"i@jex.me"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/md4w_0.2.7_1748452637447_0.058744450103853874"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-16T11:55:11.380Z","modified":"2025-05-28T17:17:17.846Z","0.0.1":"2024-01-16T11:55:11.559Z","0.0.2":"2024-01-16T13:27:57.780Z","0.0.3":"2024-01-17T10:15:38.022Z","0.0.4":"2024-01-17T10:26:55.971Z","0.0.5":"2024-01-17T11:34:51.370Z","0.0.6":"2024-01-17T14:27:14.833Z","0.0.7":"2024-01-17T14:43:57.559Z","0.1.0":"2024-02-07T16:17:02.999Z","0.1.1":"2024-02-08T11:29:48.677Z","0.1.2":"2024-02-10T15:33:21.213Z","0.1.3":"2024-02-10T16:29:43.740Z","0.1.4":"2024-02-10T16:36:01.442Z","0.1.5":"2024-02-10T16:38:21.663Z","0.1.7":"2024-02-10T16:43:19.267Z","0.1.8":"2024-02-19T13:21:56.764Z","0.1.9":"2024-02-19T16:21:38.632Z","0.2.0":"2024-02-21T18:43:46.486Z","0.2.1":"2024-02-21T19:00:36.787Z","0.2.2":"2024-02-21T19:03:47.296Z","0.2.3":"2024-02-26T12:58:10.699Z","0.2.4":"2024-02-26T13:48:50.092Z","0.2.5":"2024-03-01T16:51:40.618Z","0.2.6":"2024-03-15T10:23:32.181Z","0.2.7":"2025-05-28T17:17:17.632Z"},"bugs":{"url":"https://github.com/ije/md4w/issues"},"license":"MIT","homepage":"https://github.com/ije/md4w#readme","repository":{"type":"git","url":"git+https://github.com/ije/md4w.git"},"description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly for all JS runtimes.","maintainers":[{"name":"ije","email":"i@jex.me"}],"readme":"# md4w\n\nA **Markdown** renderer written in Zig & C, compiled to **WebAssymbly**.\n\n- **Compliance**: powered by [md4c](https://github.com/mity/md4c) that is fully\n  compliant to CommonMark 0.31, and partially supports GFM like task list,\n  table, etc.\n- **Fast**: written in Zig & C, compiled to WebAssembly (it's about **2.5x** faster\n  than markdown-it, see [benchmark](#benchmark)).\n- **Small**: `~28KB` gzipped.\n- **Simple**: zero dependencies, easy to use.\n- **Streaming**: supports web streaming API for reducing memory usage.\n- **Universal**: works in any JavaScript runtime (Node.js, Deno, Bun, Browsers,\n  Cloudflare Workers, etc).\n\n## Usage\n\n```js\n// npm i md4w (Node.js, Bun, Cloudflare Workers, etc.)\nimport { init, mdToHtml, mdToJSON, mdToReadableHtml } from \"md4w\";\n// or use the CDN url (Deno, Browsers)\nimport { init, mdToHtml, mdToJSON, mdToReadableHtml } from \"https://esm.sh/md4w\";\n\n// waiting for md4w.wasm...\nawait init();\n\n// markdown -> HTML\nconst html = mdToHtml(\"Stay _foolish_, stay **hungry**!\");\n\n// markdown -> HTML (ReadableStream)\nconst readable = mdToReadableHtml(\"Stay _foolish_, stay **hungry**!\");\nconst response = new Response(readable, {\n  headers: { \"Content-Type\": \"text/html\" },\n});\n\n// markdown -> JSON\nconst tree = mdToJSON(\"Stay _foolish_, stay **hungry**!\");\n```\n\n## Wasm Mode\n\nmd4w provides two webassembly binary files:\n\n- `md4w-fast.wasm`: Faster but larger binary file. (**270KB** gzipped)\n- `md4w-small.wasm`: Tiny but slower binary file. (**28KB** gzipped)\n\nBy default, md4w uses the `md4w-fast.wasm` binary from file system, uses the `md4w-small.wasm` binary from CDN. You can also specify the wasm file by adding the `wasmMode` option.\n\n```js\nimport { init } from \"md4w\";\n\nawait init(\"fast\"); // or \"small\"\n```\n\nIf you are using a **bundler** like vite, you need to configure the `wasm` input manually.\n\n```js\nimport { init } from \"md4w\";\nimport wasmUrl from \"md4w/js/md4w-fast.wasm?url\";\n\nawait init(wasmUrl);\n```\n\n## Parse Flags\n\nBy default, md4w uses the following parse flags:\n\n- `COLLAPSE_WHITESPACE`: Collapse non-trivial whitespace into single space.\n- `PERMISSIVE_ATX_HEADERS`: Do not require space in ATX headers (`###header`).\n- `PERMISSIVE_URL_AUTO_LINKS`: Recognize URLs as links.\n- `STRIKETHROUGH`: Text enclosed in tilde marks, e.g. `~foo bar~`.\n- `TABLES`: Support GitHub-style tables.\n- `TASK_LISTS`: Support GitHub-style task lists.\n\nYou can use the `parseFlags` option to change the renderer behavior:\n\n```ts\nmdToHtml(\"Stay _foolish_, stay **hungry**!\", {\n  parseFlags: [\n    \"DEFAULT\",\n    \"NO_HTML\",\n    \"LATEX_MATH_SPANS\",\n    // ... other parse flags\n  ],\n});\n```\n\nAll available parse flags are:\n\n```ts\nexport enum ParseFlags {\n  /** Collapse non-trivial whitespace into single space. */\n  COLLAPSE_WHITESPACE,\n  /** Do not require space in ATX headers ( ###header ) */\n  PERMISSIVE_ATX_HEADERS,\n  /** Recognize URLs as links. */\n  PERMISSIVE_URL_AUTO_LINKS,\n  /** Recognize e-mails as links.*/\n  PERMISSIVE_EMAIL_AUTO_LINKS,\n  /** Disable indented code blocks. (Only fenced code works.) */\n  NO_INDENTED_CODE_BLOCKS,\n  /** Disable raw HTML blocks. */\n  NO_HTML_BLOCKS,\n  /** Disable raw HTML (inline). */\n  NO_HTML_SPANS,\n  /** Support GitHub-style tables. */\n  TABLES,\n  /** Support strike-through spans (text enclosed in tilde marks, e.g. ~foo bar~). */\n  STRIKETHROUGH,\n  /** Support WWW autolinks (without proto; just 'www.') */\n  PERMISSIVE_WWW_AUTO_LINKS,\n  /** Support GitHub-style task lists. */\n  TASKLISTS,\n  /** Support LaTeX math spans ($...$) and LaTeX display math spans ($$...$$) are supported. (Note though that the HTML renderer outputs them verbatim in a custom tag <x-equation>.) */\n  LATEX_MATH_SPANS,\n  /** Support wiki-style links ([[link label]] and [[target article|link label]]) are supported. (Note that the HTML renderer outputs them in a custom tag <x-wikilink>.) */\n  WIKI_LINKS,\n  /** Denotes an underline instead of an ordinary emphasis or strong emphasis. */\n  UNDERLINE,\n  /** Using hard line breaks. */\n  HARD_SOFT_BREAKS,\n  /** Shorthand for NO_HTML_BLOCKS | NO_HTML_SPANS */\n  NO_HTML,\n  /** Default flags COLLAPSE_WHITESPACE | PERMISSIVE_ATX_HEADERS | PERMISSIVE_URL_AUTO_LINKS | STRIKETHROUGH | TABLES | TASK_LISTS */\n  DEFAULT,\n}\n```\n\n## Code Highlighter\n\nmd4w would not add colors to the code blocks by default, however, we provide a\n`setCodeHighlighter` function to allow you to add any code highlighter you like.\n\n```js\nimport { setCodeHighlighter } from \"md4w\";\n\nsetCodeHighlighter((code, lang) => {\n  return `<pre><code class=\"language-${lang}\">${hl(code)}</code></pre>`;\n});\n```\n\n### Caveats\n\n- The returned code will be inserted into the html directly, without html\n  escaping. You should take care of the html escaping by yourself.\n- Although we don't send back the highlighted code to the wasm module, the\n  performance is still impacted by the code highlighter.\n\n## Web Streaming API\n\nmd4w provides the web streaming API, that is useful\nfor a http server to stream the outputed html.\n\n```js\nimport { mdToReadableHtml } from \"md4w\";\n\nconst readable = mdToReadableHtml(readFile(\"large.md\"));\n\n// write to file\nconst file = await Deno.open(\"/foo/bar.html\", { write: true, create: true });\nreadable.pipeTo(file.writable);\n\n// or send to browser\nconst response = new Response(readable, {\n  headers: { \"Content-Type\": \"text/html\" },\n});\n```\n\n### Buffer Size\n\nBy default, md4w uses a buffer size of `4KB` for streaming, you can change it by\nadding the `bufferSize` option.\n\n```js\nmdToReadableHtml(largeMarkdown, {\n  bufferSize: 16 * 1024,\n});\n```\n\n### Caveats\n\nThe streaming API currently only uses the buffer for output, you still need\nto load the whole markdown data into memory.\n\n## Rendering to JSON\n\nmd4w also provides a `mdToJSON` function to render the markdown to JSON.\n\n```js\nconst traverse = (node) => {\n  // text node\n  if (typeof node === \"string\") {\n    console.log(node);\n    return;\n  }\n\n  // element type\n  console.log(node.type);\n\n  // element attributes (may be undefined)\n  console.log(node.props);\n\n  // element children (may be undefined)\n  node.children?.forEach(traverse);\n};\n\nconst tree = mdToJSON(\"Stay _foolish_, stay **hungry**!\");\ntraverse(tree);\n```\n\n### Node Type\n\nThe node type is a number that represents the type of the node. You can import\nthe `NodeType` enum to get the human-readable node type.\n\n```ts\nimport { NodeType } from \"md4w\";\n\nconsole.log(NodeType.P); // 9\nconsole.log(NodeType.IMG); // 33\n\nif (node.type === NodeType.IMG) {\n  console.log(\"This is an image node, `src` is\", node.props.src);\n}\n```\n\n> All available node types are defined in the\n> [`NodeType`](./js/md4w.d.ts#L76) enum.\n\n## Development\n\nThe renderer is written in [Zig](https://ziglang.org/), ensure you have it (0.11.0)\ninstalled.\n\n```bash\nzig build && deno test -A\n```\n\n## Benchmark\n\n![screenshot](./test/benchmark-screenshot.png)\n\n```bash\nzig build && deno bench -A test/benchmark.js\n```\n\n## Prior Art\n\n- [md4c](https://github.com/mity/md4c) - C Markdown parser. Fast. SAX-like\n  interface. Compliant to CommonMark specification.\n- [markdown-wasm](https://github.com/rsms/markdown-wasm) - Very fast Markdown\n  parser and HTML generator implemented in WebAssembly, based on md4c.\n\n## License\n\nMIT\n","readmeFilename":"README.md"}