Mausmark

A Markdown parser written in C, compiled here to WebAssembly.

  • Depends on nothing — not even the C standard library: no malloc, printf, memcpy, or string.h. Memory comes from a single caller-provided block, allocated by simply advancing a pointer.
  • One pass: parses to an AST and renders to the output buffer, no per-node allocation.
  • Single translation unit, no build system or link step. The same source compiles to native or wasm32.

It targets the original Markdown.pl 1.0.1 rules, not CommonMark.

Try it

Edit the Markdown on the left — the HTML renders live on the right.