Go to file
2018-08-03 16:16:37 -04:00
.github Add a "why" to feature request 2018-05-11 09:34:11 -04:00
bin Merge branch 'master' into fixes_992 2018-05-07 16:26:05 +02:00
docs Add navigation to docs 2018-08-03 16:16:37 -04:00
lib Merge pull request #1304 from UziTech/loose-lists 2018-07-14 18:33:29 -04:00
man fix man 2018-04-05 14:38:56 -05:00
test Merge pull request #1304 from UziTech/loose-lists 2018-07-14 18:33:29 -04:00
.editorconfig style 2018-04-05 11:36:07 -04:00
.eslintignore ignore *.min.js files 2018-03-29 13:00:33 -05:00
.eslintrc.json
.gitattributes
.gitignore
.npmignore
.travis.yml Change travis clone depth from 5 to 3 2018-05-13 15:15:59 -04:00
bower.json
component.json
index.js
jasmine.json randomize tests 2018-04-10 10:13:31 -05:00
LICENSE.md
Makefile
marked.min.js 🗜️ minify [skip ci] 2018-07-14 22:38:40 +00:00
package-lock.json 0.4.0 2018-05-18 17:12:18 -04:00
package.json 0.4.0 2018-05-18 17:12:18 -04:00
README.md [docs] Fix relative links in README 2018-07-18 23:54:29 +03:00

Marked

npm gzip size install size downloads travis

  • 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 --save

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)