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.
 
 
 
 
Vitaly Puzrin 2620dcebb0 Update contribution guidelines and issue templates 2 months ago
.github Update contribution guidelines and issue templates 2 months ago
benchmark Migrate to TS (pass 1, rename) 3 months ago
bin Use template literals for string interpolation 3 months ago
docs doc: migration info 2 months ago
src doc: continue restructuring & theme fixing 2 months ago
support doc: fix `@example` tags display 2 months ago
test Show inline `code` content in image `alt` tag #1142 2 months ago
.editorconfig Fix .editorconfig 12 years ago
.gitattributes Add .gitattributes, #719 6 years ago
.gitignore Rework benchmark deps and bump versions 5 months ago
CHANGELOG.md Update changelog 2 months ago
CONTRIBUTING.md Update contribution guidelines and issue templates 2 months ago
LICENSE Changed project name, links, attribution & updated constructor call 12 years ago
README.md doc: migration info 2 months ago
eslint.config.mjs Convert old ndoc comments to new typedoc format 3 months ago
package-lock.json Remove StateBlock.ddIndent + related updates, #1139 3 months ago
package.json Remove StateBlock.ddIndent + related updates, #1139 3 months ago
tsconfig.json Migrate to TS (pass 7, strict mode on) 3 months ago
typedoc.config.mjs doc: continue restructuring & theme fixing 2 months ago

README.md

markdown-it

CI NPM version Coverage Status

Markdown parser done right. Fast and easy to extend.

Live demo

  • Follows the CommonMark spec + adds syntax extensions & sugar (URL autolinking, typographer).
  • Configurable syntax! You can add new rules and even replace existing ones.
  • High speed.
  • Safe by default.
  • Community-written plugins and other packages on npm.

[!NOTE] If you are upgrading to v15, see the migration guide.

Documentation >>

Install (node.js):
npm install markdown-it

For a quick look at dist/ folder contents, see https://unpkg.com/markdown-it/. For browser you can use unpkg.com, esm.sh or any other CDN, which mirror npm registry.

Usage
import MarkdownIt from 'markdown-it'
const md = new MarkdownIt()
const result = md.render('# markdown-it rulezz!')

More usage examples.