Markdown parser, done right. 100% CommonMark support, extensions, syntax plugins & high speed https://markdown-it.github.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

1.7 KiB

title category
Syntax plugins Main

Syntax plugins

Embedded (enabled by default):

Via plugins:

Manage rules

By default all rules are enabled, but can be restricted by options. On plugin load all its rules are enabled automatically.

import MarkdownIt from 'markdown-it'

// Activate/deactivate rules, with currying
const md = new MarkdownIt()
  .disable(['link', 'image'])
  .enable(['link'])
  .enable('image');

// Enable everything
const md = new MarkdownIt({
  html: true,
  linkify: true,
  typographer: true,
});

You can find all rules in sources: