Go to file
2019-02-13 18:24:44 -06:00
.github Add a "why" to feature request 2018-05-11 09:34:11 -04:00
bin Pretty print ENOENT errors on cli 2018-12-20 13:44:44 -02:00
docs allow version to be a github commit 2019-02-13 18:24:44 -06:00
lib Merge pull request #1401 from styfle/slugger2 2018-12-31 15:10:57 -06:00
man man: Update bugs url in text version 2018-12-28 12:57:21 -08:00
test Merge pull request #1401 from styfle/slugger2 2018-12-31 15:10:57 -06: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 update devDependencies to last stable. Disable new object-curly-spacing standard rule (eslint-config-standard#124). 2019-01-13 19:27:35 +01:00
.gitattributes Fix GitHub language via override 2018-02-15 11:28:53 -05:00
.gitignore Ignore DS_Store on macos 2018-03-23 07:50:42 -04:00
.travis.yml Update .travis.yml 2018-10-28 18:33:43 -04:00
bower.json Fix urls to markedjs 2018-03-03 14:20:24 -05:00
component.json Fix urls to markedjs 2018-03-03 14:20:24 -05:00
index.js index 2011-08-14 00:07:51 -05:00
jasmine.json add jasmine tests 2018-03-03 01:09:09 -06:00
LICENSE.md Move license back to root dir 2018-10-16 21:16:43 -04:00
Makefile generate textual manpage 2018-01-09 15:07:01 +01:00
marked.min.js 🗜️ minify [skip ci] 2019-01-14 14:45:14 +00:00
package-lock.json update devDependencies to last stable. Disable new object-curly-spacing standard rule (eslint-config-standard#124). 2019-01-13 19:27:35 +01:00
package.json update devDependencies to last stable. Disable new object-curly-spacing standard rule (eslint-config-standard#124). 2019-01-13 19:27:35 +01:00
README.md Fix link to david-dm 2018-09-10 13:56:03 -04:00

Marked

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