Github url

marked

by markedjs

markedjs /marked

A markdown parser and compiler. Built for speed.

22.8K Stars 2.8K Forks Last release: about 2 months ago (v1.1.0) Other 2.1K Commits 60 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

Marked

npmgzip sizeinstall sizedownloadsdepdev depgithub actionssnyk

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

hello world

Browser

<meta charset="utf-8"><title>Marked in the browser</title>

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

License

Copyright (c) 2011-2018, Christopher Jeffrey. (MIT License)

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.