- Home
- Skills
- Frontend & Web Apps
- markdown-fast: Faster marked.parse(), Same HTML
Works with the AI Agents you already use
markdown-fast: Faster marked.parse(), Same HTML
by Firt
A ~2.5x faster drop-in for marked.parse(), with a script that proves byte-identical HTML first.
Free
markdown-fast: Faster marked.parse(), Same HTML
Example session with this skill installed
I have a small Node docs build: build.mjs reads every .md in docs/ and renders it with marked.parse() into out/*.html. Can you make rendering faster without changing the HTML?
- Read your context and instructions
- Compiled the markdown-fast
Fit check: build.mjs uses plain marked.parse(md) with defaults → fit. changelog.mjs uses marked.use() with breaks:true and a custom extension → not a fit, left on marked (marked stays pinned at 18.1.3).
Vendor: parse.js + LICENSE copied (MIT kept). No new npm dependency.
Verify on the project's own docs: 8 docs + 4 edge inputs → 12/12 identical (exit 0). (In our first test run verify caught one real difference — a wrapped line indented 4+ columns followed by a nested list — so the agent did not switch until it was fixed. That is the point of the verify step.)
Benchmark (alternating, 3 rounds): 3.54x, 3.96x, 4.21x faster (median 3.96x).
Report: rendering ~3.5–4.2x faster, HTML byte-identical. Honest note: this docs folder is only 11.5 KB, so the real-world gain is a few milliseconds; worth it for large doc sets, SSR or bulk rendering. Revert = point the import back to marked.
Connects securely to your tools. The creator never sees your data.
About this skill
If your docs build, static site or SSR spends time in marked.parse(), this skill makes rendering faster without changing a single byte of HTML, and proves it on your own files before you switch.
What you get: one dependency-free file (parse.js, MIT) that returns the same HTML string as marked 18.1.3 with default options (GFM on), plus two scripts:
- verify.mjs: renders your real Markdown with both marked and markdown-fast and prints every difference. No differences, no switch.
- bench.mjs: alternates marked and markdown-fast after warmup, 3 rounds, and prints the speedup range on your corpus.
Measured on Node 24 (1.5 vCPU) against marked 18.1.3:
- 720 test cases (680 CommonMark/GFM spec examples + 40 long README-style docs): 720/720 identical, about 2.2–2.7x faster.
- 38 real README/docs files: 38/38 identical, 2.5–3.3x faster.
- 24,000 generated realistic documents: 99.96% identical. That is why verify is a required step, not optional.
Your agent will:
- Check fit: only plain marked.parse(str) / marked(str) with default options. It leaves alone anything using options, marked.use() extensions, renderers, tokens/lexer, parseInline, async or another marked version.
- Vendor parse.js plus its MIT LICENSE (no new npm dependency).
- Run verify on your docs. Any difference means that call site stays on marked.
- Switch only the call sites that passed, then run your tests.
- Benchmark honestly and tell you if the gain is too small to matter (e.g. a tiny docs folder dominated by startup).
- Report the fit decision, verify result, speedup range and how to revert.
Honest limits: it follows marked 18.1.3 exactly. Newer marked (18.2.x) differs in some list cases. Odd or malformed user-typed Markdown is where differences remain. It does not sanitize HTML (neither does marked), so keep your sanitizer.
Works with Claude Code, Cursor, Codex and any SKILL.md agent.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 16 days ago
- Free with an Agensi account
Permissions
What's inside
Frequently Asked Questions
New in Frontend & Web Apps
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Frontend & Web Apps.