Fast, customizable Markdown parser and renderer with full CommonMark support. TypeScript rewrite of markdown-it with enhancements.
A TypeScript rewrite of markdown-it with first-class typings, modern tooling, and enhancements.
v14.1.0 and plugin API.Read the documentation for more details.
v1+ @latest: All new features and may include breaking changes.
[!IMPORTANT]
🚧 markdown-exit v1 is currently in public beta (v1.0.0-beta.*).
Breaking changes may occur until a stablev1.0.0is released.
npm i markdown-exit
@legacyFull compatibility with markdown-it usage while adding TypeScript support, bug fixes and performance improvements. (v0 branch)
npm i markdown-exit@legacy
import { createMarkdownExit } from 'markdown-exit'
// factory helper
const md = createMarkdownExit()
const html = md.render('# markdown-exit')
import { MarkdownExit } from 'markdown-exit'
// with the `new` keyword
const md = new MarkdownExit()
const html = md.render('# markdown-exit')
[!NOTE]
Default export (with callable constructor support) is retained for markdown-it compatibility, but it may have drawbacks in module interop and tree-shaking.
import MarkdownExit from 'markdown-exit'
// callable function
const md = MarkdownExit()
md.render('# markdown-exit')
// with the `new` keyword
const md = new MarkdownExit()
md.render('# markdown-exit')
Drop-in replacement for markdown-it with enhancements, see Migration Guide for details.
- import MarkdownIt from 'markdown-it'
+ import MarkdownExit from 'markdown-exit'
This project owes its foundation to the markdown-it community and all its contributors.
We use cookies
We use cookies to analyze traffic and improve your experience. You can accept or reject analytics cookies.