Skip to content
A markdown parser and compiler. Built for speed.
JavaScript Makefile
Branch: master
Clone or download


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)


Checkout the demo page to see marked in action ⛹️


Our documentation pages are also rendered using marked 💯

Also read about:


CLI: npm install -g marked

In-browser: npm install marked


Warning: 🚨 Marked does not sanitize the output HTML. Please use a sanitize library, like DOMPurify (recommended), sanitize-html or insane on the output HTML! 🚨


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


<!doctype html>
  <meta charset="utf-8"/>
  <title>Marked in the browser</title>
  <div id="content"></div>
  <script src=""></script>
    document.getElementById('content').innerHTML =
      marked('# Marked in the browser\n\nRendered by **marked**.');


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

You can’t perform that action at this time.