{"repo":"ije/md4w","free":true,"listed":false,"github":"https://github.com/ije/md4w","clone":"git clone https://github.com/ije/md4w.git","description":"A Markdown renderer written in Zig & C, compiled to WebAssymbly.","language":"Zig","stars":153,"topics":["html","markdown","md4c","parser","streaming","wasm","webassembly","zig","renderer"],"license":"MIT","category":"productivity","readme_excerpt":"md4w A Markdown renderer written in Zig & C, compiled to WebAssymbly . - Compliance : powered by md4c that is fully compliant to CommonMark 0.31, and partially supports GFM like task list, table, etc. - Fast : written in Zig & C, compiled to WebAssembly (it's about 2.5x faster than markdown-it, see benchmark). - Small : 28KB gzipped. - Simple : zero dependencies, easy to use. - Streaming : supports web streaming API for reducing memory usage. - Universal : works in any JavaScript runtime (Node.js, Deno, Bun, Browsers, Cloudflare Workers, etc). Usage Wasm Mode md4w provides two webassembly binary files: - md4w-fast.wasm : Faster but larger binary file. ( 270KB gzipped) - md4w-small.wasm : Tiny but slower binary file. ( 28KB gzipped) By 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. If you are using a bundler like vite, you need to configure the wasm input manually. Parse Flags By default, md4w uses the following parse flags: - COLLAPSE WHITESPACE : Collapse non-trivial whitespace into single space. - PERMISSIVE ATX HEADERS : Do not require space in ATX headers ( ###header ). - PERMISSIVE URL AUTO LINKS : Recognize URLs as links. - STRIKETHROUGH : Text enclosed in tilde marks, e.g. foo bar . - TABLES : Support GitHub-style tables. - TASK LISTS : Support GitHub-style task lists. You can use the parseFlags option to change the renderer behavior: All availabl","default_branch":null,"files":null,"tree":[],"storefront":"/r/ije","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ije/md4w/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}