markedjs/marked


A markdown parser and compiler. Built for speed.

https://marked.js.org

License: Other

Language: JavaScript

Keywords: commonmark, compiler, gfm, markdown, parser


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)

Project Statistics

Sourcerank 22
Repository Size 2.56 MB
Stars 22,435
Forks 2,824
Watchers 405
Open issues 76
Dependencies 598
Contributors 113
Tags 60
Created
Last updated
Last pushed

Top Contributors See all

Christopher Jeffrey (JJ) Tony Brix Steven Federico Soave Josh Bruce x13machine aprotim Marti Martz Jamie Davis Chris Wren Vse Mozhet Byt Tamás Koczka Костя Третяк Ivan Demidov Trevor Buckner Matt Austin Mateus Craveiro Rich Trott Mithgol barrywoolgar

Packages Referencing this Repo

markedjs
A markdown parser built for speed
Latest release 10.0.0 - Updated - 22.4K stars
@pardjs/marked
A markdown parser built for speed
Latest release 0.6.2 - Published - 22.4K stars
@m3lx/marked
A markdown parser built for speed
Latest release 0.6.3-al.1 - Published - 22.4K stars
@neilsonhughey/marked
A markdown parser built for speed
Latest release 0.4.0 - Published - 22.4K stars
marked2
A markdown parser built for speed
Latest release 0.2.7 - Published - 22.4K stars
marked-prettyprint
A markdown parser built for speed
Latest release 0.2.8 - Published - 22.4K stars
marked-edp
A markdown parser built for speed
Latest release 0.2.9 - Published - 22.4K stars
marked-component
A markdown parser built for speed
Latest release 0.2.9 - Published - 22.4K stars
marked
A markdown parser built for speed
Latest release 1.1.0 - Updated - 22.4K stars
org.webjars.npm:marked
WebJar for marked
Latest release 1.1.0 - Updated - 22.4K stars
marked-papandreou
A markdown parser built for speed
Latest release 0.3.3-patch3 - Updated - 22.4K stars
marked
A markdown parser built for speed
Latest release v1.1.0 - Published - 22.4K stars
org.webjars.bowergithub.markedjs:marked
WebJar for marked
Latest release 0.4.0 - Updated - 22.4K stars
org.webjars.bowergithub.chjj:marked
WebJar for marked
Latest release 0.3.12 - Published - 22.4K stars
@npm-polymer/marked
A markdown parser built for speed
Latest release 0.3.6 - Published - 22.4K stars
mdto
A markdown parser built for speed
Latest release 1.0.1 - Updated - 22.4K stars
@hellstad/marked
A markdown parser built for speed
Latest release 0.3.7 - Published - 22.4K stars
marked-lianyue
A markdown parser built for speed
Latest release 0.3.6 - Published - 22.4K stars
appc-marked
A markdown parser built for speed
Latest release 0.3.6 - Updated - 22.4K stars
marked
A markdown parser and compiler. Built for speed.
Latest release 0.3.3 - Updated - 22.4K stars

Recent Tags See all

v1.1.0 May 16, 2020
v1.0.0 April 21, 2020
v0.8.2 March 22, 2020
v0.8.1 March 18, 2020
v0.8.0 December 12, 2019
v0.7.0 July 06, 2019
v0.6.3 June 30, 2019
v0.6.2 April 05, 2019
v0.6.1 February 19, 2019
v0.6.0 January 01, 2019
v0.5.2 November 20, 2018
v0.5.1 September 26, 2018
v0.5.0 August 16, 2018
0.4.0 May 20, 2018
v0.3.19 March 26, 2018

Interesting Forks See all

gitterHQ/marked
Project moved to https://gitlab.com/gitlab-org/gitter/gitter-marked
This repository is no longer maintained - Last pushed
lepture/marked
A markdown parser and compiler. Built for speed.
JavaScript - MIT - Last pushed - 2 stars - 1 forks
worktile/marked
A markdown parser and compiler. Built for speed.
JavaScript - MIT - Last pushed - 1 stars - 3 forks
styfle/marked
A markdown parser and compiler. Built for speed.
JavaScript - Other - Last pushed - 1 stars - 2 forks
cronvel/hyper-markdown
A superset of markdown, having in mind the “zero HTML for content” motto!
HTML - MIT - Last pushed - 1 stars - 1 forks

Something wrong with this page? Make a suggestion

Last synced: 2020-03-22 16:05:30 UTC

Login to resync this repository