markedjs/marked


A markdown parser and compiler. Built for speed.

https://marked.js.org

License: Other

Language: JavaScript

Keywords: commonmark, compiler, gfm, hacktoberfest, 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.76 MB
Stars 23,481
Forks 2,909
Watchers 410
Open issues 87
Dependencies 598
Contributors 113
Tags 69
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

marked
A markdown parser built for speed
Latest release v1.2.5 - Published - 23.5K stars
@m3lx/marked
A markdown parser built for speed
Latest release 0.6.3-al.1 - Published - 23.5K stars
@neilsonhughey/marked
A markdown parser built for speed
Latest release 0.4.0 - Published - 23.5K stars
org.webjars.bowergithub.markedjs:marked
WebJar for marked
Latest release 1.1.0 - Updated - 23.5K stars
org.webjars.bowergithub.chjj:marked
WebJar for marked
Latest release 0.3.12 - Published - 23.5K stars
marked
A markdown parser built for speed
Latest release 1.2.5 - Updated - 23.5K stars
org.webjars.npm:marked
WebJar for marked
Latest release 1.1.1 - Updated - 23.5K stars
@npm-polymer/marked
A markdown parser built for speed
Latest release 0.3.6 - Published - 23.5K stars
marked-prettyprint
A markdown parser built for speed
Latest release 0.2.8 - Published - 23.5K stars
markedjs
A markdown parser built for speed
Latest release 10.0.0 - Updated - 23.5K stars
@pardjs/marked
A markdown parser built for speed
Latest release 0.6.2 - Published - 23.5K stars
marked2
A markdown parser built for speed
Latest release 0.2.7 - Published - 23.5K stars
org.webjars.bower:marked
WebJar for marked
Latest release 0.3.19 - Updated - 23.5K stars
marked-edp
A markdown parser built for speed
Latest release 0.2.9 - Published - 23.5K stars
marked-component
A markdown parser built for speed
Latest release 0.2.9 - Published - 23.5K stars
georgerogers42-marked
A markdown parser built for speed
Latest release 0.2.6 - Published - 23.5K stars
marked-papandreou
A markdown parser built for speed
Latest release 0.3.3-patch3 - Updated - 23.5K stars
mdto
A markdown parser built for speed
Latest release 1.0.1 - Updated - 23.5K stars
@hellstad/marked
A markdown parser built for speed
Latest release 0.3.7 - Published - 23.5K stars
marked-lianyue
A markdown parser built for speed
Latest release 0.3.6 - Published - 23.5K stars

Recent Tags See all

v1.2.5 November 19, 2020
v1.2.4 November 15, 2020
v1.2.3 November 04, 2020
v1.2.2 October 21, 2020
v1.2.1 October 21, 2020
v1.1.2 October 21, 2020
v1.20 September 28, 2020
v1.2.0 September 27, 2020
v1.1.1 July 14, 2020
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

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
dongzhou-dz/marked
A markdown parser and compiler. Built for speed.
Other - Updated - 1 stars
styfle/marked
A markdown parser and compiler. Built for speed.
JavaScript - Other - Last pushed - 1 stars - 2 forks

Something wrong with this page? Make a suggestion

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

Login to resync this repository