2019-05-03 20:58:27 -05:00
2018-05-11 09:34:11 -04:00
2019-03-12 09:07:26 -05:00
2019-03-12 09:07:47 -05:00
2019-05-03 20:58:27 -05:00
2018-04-05 11:36:07 -04:00
2018-03-29 13:00:33 -05:00
2018-03-23 07:50:42 -04:00
2018-10-28 18:33:43 -04:00
2018-03-03 14:20:24 -05:00
2018-03-03 14:20:24 -05:00
2011-08-14 00:07:51 -05:00
2019-03-13 08:50:11 -05:00
2018-10-16 21:16:43 -04:00
2018-01-09 15:07:01 +01:00
2019-04-05 13:03:49 +00:00
2019-05-03 20:58:27 -05:00

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

Warning: 🚨 Marked does not sanitize the output HTML by default 🚨

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)

Description
A markdown parser and compiler. Built for speed.
Readme 18 MiB
Languages
JavaScript 35%
TypeScript 35%
HTML 30%