marked
A markdown parser built for speed
Last updated 7 years ago by amidknight .
MIT · Repository · Bugs · Original npm
$ cnpm install marked 
SYNC missed versions from official npm registry.

Marked

npm gzip size install size downloads dep dev dep github actions 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

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

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)

Current Tags

  • 4.2.12                                ...           latest (3 years ago)

21 Versions

  • 4.2.2                                ...           3 years ago
  • 4.2.12                                ...           3 years ago
  • 0.8.0                                ...           6 years ago
  • 4.0.17                                ...           3 years ago
  • 4.0.16                                ...           3 years ago
  • 3.0.8                                ...           4 years ago
  • 1.1.1                                ...           5 years ago
  • 2.1.3                                ...           4 years ago
  • 3.0.2                                ...           4 years ago
  • 4.0.12                                ...           4 years ago
  • 4.0.10                                ...           4 years ago
  • 2.0.1                                ...           5 years ago
  • 1.2.7                                ...           5 years ago
  • 1.2.0                                ...           5 years ago
  • 1.0.0                                ...           5 years ago
  • 1.1.0                                ...           5 years ago
  • 0.8.2                                ...           5 years ago
  • 0.6.3                                ...           6 years ago
  • 0.4.0                                ...           7 years ago
  • 0.3.19                                ...           7 years ago
  • 0.7.0                                ...           6 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (13)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org