marked

A markdown parser and compiler. Built for speed.

Github stars Tracking Chart

Marked

npm
gzip size
install size
downloads
dep
dev dep
travis
snyk

  • ⚡ built for speed
  • ⬇️ low-level compiler for parsing markdown without caching or blocking for long periods of time
  • ⚖️ light-weight while implementing all markdown features from the supported flavors & specifications
  • ? works in a browser, on a server, or from a command line interface (CLI)

Demo

Checkout the demo page to see marked in action ⛹️

Docs

Our documentation pages are also rendered using marked ?

Also read about:

Installation

CLI: npm install -g marked

In-browser: npm install marked

Usage

CLI

$ marked -o hello.html
hello world
^D
$ cat hello.html
<p>hello world</p>

Browser

<!doctype html>
<html>
<head>
  <meta charset="utf-8"/>
  <title>Marked in the browser</title>
</head>
<body>
  <div id="content"></div>
  <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
  <script>
    document.getElementById('content').innerHTML =
      marked('# Marked in the browser\n\nRendered by **marked**.');
  </script>
</body>
</html>

License

Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)

Main metrics

Overview
Name With Ownermarkedjs/marked
Primary LanguageJavaScript
Program languageMakefile (Language Count: 3)
Platform
License:Other
所有者活动
Created At2011-07-24 13:15:51
Pushed At2025-05-05 16:33:43
Last Commit At2025-05-05 10:33:41
Release Count190
Last Release Namev15.0.11 (Posted on )
First Release Namev0.0.1 (Posted on )
用户参与
Stargazers Count34.5k
Watchers Count391
Fork Count3.5k
Commits Count3.6k
Has Issues Enabled
Issues Count1579
Issue Open Count18
Pull Requests Count1517
Pull Requests Open Count4
Pull Requests Close Count431
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private