Marked
A strong pick. 1st of 9 markdown libraries.
Marked is a small, fast Markdown-to-HTML compiler with no dependencies. It is the most installed library in its category and is still gaining ground, with very active maintenance. It is a strong default when you need HTML output. Pick remark/unified or markdown-it instead if you need a real syntax tree, deep plugin pipelines or safe HTML by default.
Best for: Projects that need fast, lightweight Markdown-to-HTML conversion with GFM support, on the server or in the browser.
Scores
Overall8.3
How strongly do we recommend it for a new project today?
Claude Opus 5.5: 8.0, likely 7.0 to 8.5
It is a strong pick and arguably the default for plain Markdown-to-HTML: fast, small, dependency-free, very actively maintained and still gaining share. It falls short of a category-wide default because remark/unified does tree transforms better and markdown-it has richer plugins and safer defaults. Its recurring DoS advisories and lack of sanitizing also mean it needs care with untrusted input.
- npm downloads ratio: About 7.0 vs median 4.1, so it is gaining ground
- pkgpulse.com/guides/marked-vs-remark-vs-markdown-it-parsers-2026: Pick marked for HTML output, markdown-it for editor plugins, remark for AST pipelines
- github.com/markedjs/marked/releases: Very active release cadence in 2026
GPT-6.2 Sol: 8.5, likely 7.3 to 9.3
Marked is one of the strongest choices for fast Markdown-to-HTML rendering. Its simple API, active maintenance, and substantial downstream use make it a good choice for new projects. Remark is a better fit for tree-heavy transformations, and react-markdown has a direct path to React components. The recommendation depends on how much the project needs exact rendering behavior and how it handles untrusted content.
- github.com/Princesseuh/web-markdown-benchmark: Competitive rendering speed with zero runtime dependencies
- github releasesLastYear and dependents repos: Frequent releases and substantial downstream adoption
- github.com/remarkjs/remark: Stronger syntax-tree workflows
- github.com/remarkjs/react-markdown: Direct React component rendering
- marked.js.org: HTML-first API and separate sanitization
Needed by many6.5
How many developers need a tool for this job?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Many web apps, docs tools, CLIs and AI chat interfaces need to turn Markdown into HTML. Marked runs on any runtime and with any framework. It covers the 'render to HTML' half of the category well, but it is less suited to tree-editing work.
- dependents: 468,889 repos and 12,165 packages depend on it
- tanstack.com/markdown/latest/docs/comparison: Described as a compact general HTML renderer with broad compatibility
GPT-6.2 Sol: 5.9, likely 4.5 to 7.1
Markdown rendering comes up in documentation, notebooks, editors, and chat interfaces. Marked works across browsers and servers, and its HTML-first design serves a wide share of rendering use cases. The range is wide because the share of JS and TS projects that need their own Markdown renderer is hard to measure.
- marked.js.org: Browser, server, and CLI usage
- docs.github.com/en/contributing/writing-for-github-docs/using-markdown-and-liquid-in-github-docs: Markdown powers a large documentation site
- raw.githubusercontent.com/jupyterlab/jupyterlab/main/packages/markedparser-extension/src/index.ts: Markdown rendering and heading extraction in notebooks
Helps a lot7.9
How well does it do the job for those who need it?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
It is fast, small and dependency-free, with built-in GFM, types and a usable extension system. Recent releases fix many CommonMark edge cases and quadratic-time paths. It is held back by having no built-in sanitizing, no MDX or component rendering, and a token list instead of a full AST. For tree transforms, remark does the job better, and markdown-it has the larger plugin ecosystem.
- pkgpulse.com/guides/marked-vs-remark-vs-markdown-it-parsers-2026: Good for HTML output with renderer hooks. It does not sanitize, and AST work is easier in remark.
- tanstack.com/markdown/latest/docs/comparison: Smallest bundle among the peers compared. Has GFM but no React renderer or MDX, and raw HTML is on by default.
- github.com/markedjs/marked/releases: v18.x releases fix many spec edge cases and cut quadratic scans
- npm hasTypes: Ships TypeScript types
GPT-6.2 Sol: 8.3, likely 7.3 to 9.3
Version 18.2.1 pairs a simple, well-documented parse API with typed token and renderer hooks. Recent benchmarks put Marked near markdown-it for speed, while micromark and remark rendered closer to the GFM reference in a separate comparison. Remark is better suited to reusable syntax-tree pipelines. The benchmarks cover earlier 18.x builds, and there is little direct evidence on coding agents' success with custom extensions.
- marked.js.org/using_pro: Typed extension examples and token walking
- github.com/markedjs/marked/releases/tag/v18.2.1: Current stable release fixes rendering and tokenizer types
- github.com/Princesseuh/web-markdown-benchmark: Recent HTML timings across document sizes
- github.com/privatenumber/gfm-renderer-comparison: Micromark and remark were closer to the GFM reference
- github.com/remarkjs/remark: Reusable mdast tree and plugin pipeline
Holds up over time8.2
Will it still be a good choice in two years?
Claude Opus 5.5: 8.0, likely 7.0 to 9.0
The project is very active, with 299 commits and 26 releases in the past year. It has only 13 open issues and a Scorecard Maintained score of 10. It is 15 years old with 300 contributors, but a small core team does most of the work, and there is no visible corporate funding. Frequent major versions add some upgrade churn.
- github commitsLastYear / releasesLastYear: 299 commits and 26 releases in the last year
- github openIssues: 13 open issues against 1,688 closed
- github.com/markedjs/marked/releases: Weekly-ish releases through November 2026
- markedjs maintainers: A small volunteer core team, led mainly by one maintainer
GPT-6.2 Sol: 8.4, likely 7.2 to 9.2
Marked recorded 299 commits and 26 releases in the past year, and its November patch closed a user-reported parsing bug. The project lists three publishers, though their current release access and funding are unclear. Major upgrades have changed token output, and a downstream user reported broken Jest tests after the move to the ES module build.
- github commitsLastYear and releasesLastYear: 299 commits and 26 releases
- github.com/markedjs/marked/releases/tag/v18.2.1: November patch closes a reported link-rendering bug
- raw.githubusercontent.com/markedjs/marked/v18.2.1/docs/AUTHORS.md: Three people listed as publishers
- github.com/markedjs/marked/releases/tag/v18.0.0: Breaking change to trailing blank lines in block tokens
- github.com/ueberdosis/tiptap/discussions/7470: Downstream report of Jest breakage after upgrading
Used widely9.0
How many use it, and is that growing?
Claude Opus 5.5: 9.5, likely 8.5 to 10.0
It has about 509M downloads in 4 weeks, up from 72M a year earlier. That ratio of about 7.0 is well above the 4.1 median, and it is the highest download count in the category. Its 468k dependent repos is more than double any peer. Part of the download volume comes from transitive installs, but the dependents count confirms broad direct use.
- npm downloadsLast4Weeks: 509M, against 72M a year ago (ratio about 7.0 vs median 4.1)
- dependents repos: 468,889, the most among peers (next is remark at 221k)
- github stars: 37.3k stars, the most in the category
GPT-6.2 Sol: 8.4, likely 7.2 to 9.3
Ecosyste.ms tracks about 469,000 dependent repositories and 12,165 dependent npm packages, and Marked leads the peer set in tracked repositories. Four-week downloads rose 7.0-fold year over year, ahead of the 4.1-fold catalog baseline. Automated installs and downstream packages such as Mermaid make the share of new projects choosing Marked harder to estimate. Four Bluesky links are roughly in line with peers and add little to the estimate.
- dependents and peers dependentRepos: 468,889 tracked repositories, over twice the next peer
- npm downloadsLast4Weeks, npm downloadsSame4WeeksYearAgo, and medianDownloadsRatio: 509.0 million versus 72.3 million, for 7.0-fold growth
- github stars: 37,320 stars lead the supplied peers
- bluesky posts and peers blueskyPosts: Four links over 24 months
- github.com/mermaid-js/mermaid/blob/develop/packages/mermaid/package.json: Mermaid installs Marked as a runtime dependency
Vouched for7.7
Who stands behind it being good?
Claude Opus 5.5: 7.0, likely 6.0 to 8.0
Independent 2026 comparisons consistently recommend it as the pick for simple, fast HTML conversion. A very large number of packages build on it. It has little survey data or social discussion, and Bluesky and Hacker News activity is near zero, so the validation rests on adoption and third-party guides more than on named production write-ups.
- pkgpulse.com/guides/best-markdown-parsing-libraries-2026: Recommended for zero-dependency, fast Markdown-to-HTML
- tanstack.com/markdown/latest/docs/comparison: Used as a reference renderer in TanStack's comparison
- dependents packages: 12,165 npm packages build on it
- bluesky posts: Only 4 posts, so little social signal
GPT-6.2 Sol: 8.3, likely 7.2 to 9.2
JupyterLab uses Marked for its Markdown parser, Tiptap uses it in its Markdown extension, and VS Code bundles a copy for in-app Markdown rendering. Independent benchmarks back up its speed and show where its output differs from the GFM reference. These integrations span several major versions, and the State of JavaScript survey offers little direct evidence about Marked users' satisfaction.
- raw.githubusercontent.com/jupyterlab/jupyterlab/main/packages/markedparser-extension/src/index.ts: Default Markdown parser in JupyterLab
- github.com/ueberdosis/tiptap/discussions/7470: Tiptap's Markdown extension ships with Marked
- raw.githubusercontent.com/microsoft/vscode/main/src/vs/base/browser/markdownRenderer.ts: VS Code uses a bundled Marked renderer
- github.com/privatenumber/gfm-renderer-comparison: Independent speed and output comparison
- 2025.stateofjs.com/en-US/libraries: No Marked-specific satisfaction result presented
Safe7.5
How safe is it to depend on?
Claude Opus 5.5: 7.5, likely 6.5 to 8.5
It has zero dependencies, an MIT licence and a Scorecard of 7.4. Packaging, workflow and token checks are strong, while pinned dependencies, fuzzing and SAST are weak. It has had 13 advisories, mostly ReDoS, with two in the last 24 months, including a high-severity recursion DoS in 18.0.0 that was fixed quickly. It does not sanitize HTML, so apps must add their own XSS protection.
- npm dependencies: 0 runtime dependencies
- advisories: 13 total, 2 in the last 24 months (a HIGH DoS in April 2026 and a MODERATE ReDoS in 2025)
- corgea.com/advisories/vulnerabilities/CVE-2026-41680: A 3-byte input caused infinite recursion in 18.0.0
- scorecard: 7.4 overall. Fuzzing 0, SAST 0, Pinned-Dependencies 3.
GPT-6.2 Sol: 7.4, likely 6.1 to 8.5
Marked has an MIT license, zero runtime dependencies, and GitHub Actions releases with npm provenance configured. The 2026 denial-of-service bug was patched in 18.0.2 before public disclosure, and the advisory published in 2025 covers versions older than 0.3.17. Its 7.4 OpenSSF Scorecard shows weak dependency pinning and gives no credit for fuzzing or static security analysis. Applications that render untrusted Markdown need a separate HTML sanitizer.
- github.com/markedjs/marked/blob/v18.2.1/package.json: MIT, no runtime dependencies, npm provenance configured
- github.com/markedjs/marked/releases/tag/v18.0.2: GitHub Actions shipped the fix on April 18
- github.com/markedjs/marked/security/advisories/GHSA-6v9c-7cg6-27q7: April disclosure confirms 18.0.2 as patched
- github.com/advisories/GHSA-p9wx-2529-fp83: 2025 advisory covers old versions already patched
- scorecard score and checks: 7.4 overall, with strong token permissions and weak pinning
- marked.js.org: Documents the need to sanitize raw output
Good
- Zero dependencies and a small bundle (about 12 KB), with bundled TypeScript types.
- Very active upkeep: 26 releases and about 300 commits in the last year, with a steady stream of spec-edge-case and performance fixes.
- A simple API (marked.parse) plus renderer, tokenizer and walkTokens hooks that cover most output changes.
- The largest downloads and dependents count in the category, and its share is still growing.
Bad
- It does not sanitize its output, so untrusted input needs DOMPurify or a similar sanitizer.
- It produces a flat token list, not a full AST, so multi-pass tree transforms are easier in remark/unified.
- Major versions come often (v16 to v18 within about a year), and some minor releases change how edge cases parse.
- Regex-based parsing has caused repeated ReDoS and denial-of-service advisories, the latest in 2026.
The numbers
- npm downloads, 4 weeks
- 509M ×7.0 in a year
- GitHub stars
- 37k
- Commits, 12 months
- 299
- npm version
- 18.2.1 Nov 2026
- Versions, 12 months
- 26
- Advisories, 24 months
- 2 of 13 ever
- OpenSSF Scorecard
- 7.4 out of 10, Oct 2026
- Licence
- MIT
Read on 21 November 2026 from GitHub (markedjs/marked), npm (marked), OSV and the OpenSSF Scorecard.
Markdown libraries
- 8.3Marked
- 7.9markdown-it
- 7.7react-markdown
- 7.7Streamdown
- 7.6remark
- 7.4MDX
- 7.1micromark
- 7.0Markdoc
- 4.1Showdown