Elestia Open Source Ratings
8.3

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.

WebsiteGitHubnpm

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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

  1. 8.3Marked
  2. 7.9markdown-it
  3. 7.7react-markdown
  4. 7.7Streamdown
  5. 7.6remark
  6. 7.4MDX
  7. 7.1micromark
  8. 7.0Markdoc
  9. 4.1Showdown
Compare all 9 on six scores