Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including marked with all npm packages installed. Try it out:

var marked = require("marked")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

marked v0.8.0

A markdown parser built for speed


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)


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free