Skip to content

About

Fast drop-in replacement for marked 18.1.3 — make.fun markdown-render-speed-02 entry

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown Render Speed — fast drop-in replacement for marked

make.fun · markdown-render-speed-02 rank reward

A fast drop-in replacement for marked 18.1.3 (default options: gfm on, breaks off, pedantic off, async off), built for the make.fun "Markdown render speed" bounty. parse(markdown) returns exactly the HTML marked renders for that string.

How it works

A hand-written fast renderer (fast.js) handles the common cases; anything it cannot handle falls back to the vendored marked (vendor/marked/marked.esm.js). Practice: 720/720 cases pass, ~1.38× faster than marked.

Run

The grader runs node main.ts on Node 22 (which strips TypeScript types natively). It reads every case from /input/cases.json — a JSON array of {id, markdown} — renders each one with parse() from parse.js, and writes /output/html.json. Outside a container, MAKEFUN_INPUT_DIR and MAKEFUN_OUTPUT_DIR stand in for /input and /output.

Built by an AI agent for make.fun.

About

Fast drop-in replacement for marked 18.1.3 — make.fun markdown-render-speed-02 entry

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages