PACKAGE · MARKDOWN

marked

A markdown parser built for speed

WEEKLY DOWNLOADS 79.0M
STARS 37.2K
FORKS 3.7K
OPEN ISSUES 27
GZIP SIZE 13.7 kB
UNPACKED SIZE 504.5 kB
DEPENDENCIES 1
LAST UPDATED 7mo ago
DOWNLOAD TRENDS

marked downloads · last 12 months

Download trends for marked1 download series from Oct 2025 to Sep 2026. Use left and right arrow keys to inspect monthly values.079.6M159.2M238.8M318.4MOct 2025JanAprJulSep 2026
marked
ABOUT MARKED

Marked is a high-performance Markdown parser designed for speed, enabling developers to convert Markdown text into HTML efficiently. It addresses the common need to render user-generated content or documentation in a web-friendly format without introducing significant latency. Its core mission is to provide a fast and reliable way to process Markdown, making it suitable for real-time applications and content-heavy sites.

The package is built with a focus on simplicity and speed, targeting developers who require a robust Markdown parsing solution that integrates seamlessly into various JavaScript environments. Its design prioritizes predictable output and adherence to common Markdown specifications, ensuring consistency across different platforms and use cases.

Key API patterns include the straightforward `marked.parse()` function for synchronous parsing and `marked.parse(..., { async: true })` for asynchronous operations, particularly useful in environments that benefit from non-blocking I/O. The library also offers granular control through various options that can be passed during parsing, allowing customization of rendering behavior, extensions, and sanitization.

Marked integrates well into a wide range of JavaScript workflows and frameworks. It can be used directly in Node.js applications, client-side browser applications, and within build tools. Its small bundle size makes it an excellent choice for front-end projects where initial load times are critical, and it's commonly employed in static site generators and content management systems.

With a highly optimized C++ core (available via wasm) and efficient JavaScript fallback, Marked boasts impressive performance metrics. Its gzipped bundle size of only 13.7 kB contributes to faster application loads. The package is actively maintained, evidenced by its recent updates, and has a mature codebase with over 37.2K GitHub stars indicating broad adoption and community trust.

While Marked is highly capable, it strictly adheres to the CommonMark specification by default. Developers needing extensive support for GitHub Flavored Markdown (GFM) features like task lists or strikethrough might need to enable specific extensions or configurations. For extremely complex or non-standard Markdown extensions, developers might explore more specialized parsers, though Marked's extensibility often covers most common needs.

WHEN TO USE
  • When converting Markdown content to HTML for display in web applications.
  • When integrating documentation or user-generated content into a Node.js backend.
  • When building static site generators that require fast Markdown processing.
  • When prioritizing a small JavaScript bundle size for client-side rendering.
  • When needing to parse CommonMark compliant Markdown with optional GFM extensions.
  • When requiring asynchronous parsing capabilities to avoid blocking the event loop in server environments.
WHEN NOT TO USE
  • If your application exclusively handles plain text and does not require Markdown rendering.
  • If you need a parser that supports highly esoteric or custom Markdown syntaxes without extensive custom extension development.
  • If you are already using a different Markdown parser within your project and do not require Marked's specific performance characteristics.
  • If your parsing needs are extremely simple and can be met by basic string manipulation or a significantly lighter utility.
  • If you require a WYSIWYG editor integration, as Marked is a parser, not an editor.

CORRECTIONS

Spot wrong data here?

A short note helps us fix it.

Anonymous · No account · No email back

COMPARISONS 5
marked vs shiki ★ 13.8K · 23.3M/wk marked vs @mdx-js/react ★ 19.8K · 21.0M/wk marked vs remark ★ 9.0K · 6.1M/wk marked vs mdast-util-mdx-jsx ★ 32 · 42.3M/wk marked vs rehype ★ 2.3K · 3.9M/wk