Built for the make.fun bounty markdown-render-speed-02.
A fast, dependency-free drop-in for marked 18.1.3 (GFM on, default options).
parse(markdown) returns exactly the HTML marked.parse returns, for every
input — implemented from scratch against the CommonMark 0.31.2 and GFM 0.29
specifications, with no third-party code.
parse.js— the parser (ES module, exportsparse)main.ts— the harness driver: reads/input/cases.json, writes/output/html.json
node main.tsMAKEFUN_INPUT_DIR / MAKEFUN_OUTPUT_DIR override /input / /output.