A markdown parser and compiler. Built for speed.
 
 
 
Go to file
Josh Bruce 8fafd321e5 Update SECURITY.md 2020-08-10 19:28:17 -05:00
.github fix build 2020-04-01 16:28:35 -05:00
bin marked --help 2019-12-26 16:09:02 -03:00
docs Merge pull request #1728 from flouc001/nfe/dry-run-slug 2020-07-15 08:46:24 -04:00
lib 🗜️ build [skip ci] 2020-08-07 19:43:00 +00:00
man remove tables option 2019-07-02 00:23:57 -05:00
src fix inline comment and other html blocks 2020-08-07 11:19:26 -05:00
test test comment to end of doc 2020-08-07 11:19:47 -05:00
.editorconfig style 2018-04-05 11:36:07 -04:00
.eslintignore fix eslint config 2019-11-05 15:31:11 -06:00
.eslintrc.json create tokens before sending to parser 2020-04-02 00:24:21 -05: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
.nowignore Add .nowignore 2020-02-05 11:48:35 -05: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
README.md update readme badge 2020-04-01 00:53:50 -05:00
SECURITY.md Update SECURITY.md 2020-08-10 19:28:17 -05: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 abstract htmldiffer 2019-03-13 08:50:11 -05:00
marked.min.js 🗜️ build [skip ci] 2020-08-07 19:43:00 +00:00
now.json Cleanup now.json 2020-02-05 10:31:45 -05:00
package-lock.json Regenerate lock file 2020-07-22 09:56:10 -04:00
package.json 1.1.1 2020-07-13 13:33:36 -05:00
rollup.config.esm.js Update copyright year 2019-11-11 11:24:05 -06:00
rollup.config.js Use Babel's loose mode for shorted & more performant code 2019-12-04 17:29:13 +01:00

README.md

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

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)