docs/syntax_plugins.md
Embedded (enabled by default):
Via plugins:
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: