A JavaScript Markdown parser with full CommonMark support, syntax plugins, and configurable rules. Defaults emphasize safety and speed for Node.js and browser use.
Overview
markdown-it converts Markdown to HTML with complete CommonMark coverage. It is designed to be fast and easy to extend: you can add new parsing rules or replace built-in ones, and a plugin ecosystem on npm extends syntax for tables, footnotes, emoji, and more.
The parser can run in Node.js after npm install or in the browser via CDN bundles. A live demo page lets you toggle options such as HTML output, line breaks, linkify, typographer, syntax highlighting, and strict CommonMark mode.
Security-minded defaults help avoid unsafe HTML in typical setups. Documentation covers installation, migration between major versions, and additional usage examples beyond basic rendering.
Teams embed it in static site generators, editors, and preview tools when they need a standards-aligned Markdown core that can grow with custom syntax.
Key features
- Full CommonMark specification support
- Pluggable and replaceable syntax rules
- Safe-by-default HTML handling
- Node.js and browser deployment
- Live configurable demo
- Typographer and linkify options
- Syntax highlighting integration
- npm plugin ecosystem
Use cases
- Rendering Markdown in web apps
- Building custom Markdown dialects
- Adding footnotes and tables via plugins
- Server-side HTML generation in Node