talira

markdown-it

Markdown parser done right: fast and easy to extend

open sourceMITfree

markdown-it is a fast Markdown parser for JavaScript that follows the CommonMark spec and adds syntax extensions (URL autolinking, typographic replacements). It's safe by default, its syntax is configurable (rules can be added, replaced or turned off), and community plugins on npm add footnotes, containers, anchors, math and more. It runs in Node.js and the browser, and its package includes a command-line tool that renders Markdown to HTML.

Problems it solves

  • CommonMark Markdown parser for JavaScript with plugins and safe HTML output
  • add custom syntax like footnotes or containers to a Markdown parser
  • render Markdown to HTML in Node.js for a static site or docs
  • turn off raw HTML and dangerous links when rendering user Markdown
  • a Markdown parser whose rules I can change or replace

Features

  • follows the CommonMark spec, plus autolinking and typographer
  • safe by default
  • configurable rules: add, replace or disable
  • community plugins on npm
  • Node.js, browser and a CLI

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what markdown-it does.

  1. Marked A Markdown parser and compiler, built for speed
  2. markdown-to-jsx A fast, versatile Markdown toolchain for React and more
  3. react-markdown React component to render Markdown

Compare markdown-it with the top 3