Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
M

markdown-exit

> 编程语言
Open source

Fast, customizable Markdown parser and renderer with full CommonMark support. TypeScript rewrite of markdown-it with enhancements.

1.4K stars0 likes2 views
WebsiteGitHub

About

Fast, customizable Markdown parser and renderer with full CommonMark support. TypeScript rewrite of markdown-it with enhancements.

markdown-exit

npm version bundle License CodSpeed

A TypeScript rewrite of markdown-it with first-class typings, modern tooling, and enhancements.

Features

  • ️ Type Safety: Ship robust types, improve DX, and enable type-safe development.
  • ⚡ New features: Async rendering for all rules includeing syntax highlighting and more.
  • Extensibility: Extend the markdown syntax, custom rendering with Plugins.
  • Compatibility: Compatible with markdown-it v14.3.0 and plugin API.

Documentation

Read the documentation for more details.

Installation

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 stable v1.0.0 is released.

bash
npm i markdown-exit
v0.x @legacy

Full compatibility with markdown-it usage while adding TypeScript support, bug fixes and performance improvements. (v0 branch)

bash
npm i markdown-exit@legacy

Usage

typescript
import { createMarkdownExit } from 'markdown-exit'

// factory helper
const md = createMarkdownExit()
const html = md.render('# markdown-exit')
typescript
import { MarkdownExit } from 'markdown-exit'

// with the `new` keyword
const md = new MarkdownExit()
const html = md.render('# markdown-exit')
Default import

[!NOTE] Default export (with callable constructor support) is retained for markdown-it compatibility, but it may have drawbacks in module interop and tree-shaking.

typescript
import MarkdownExit from 'markdown-exit'

// callable function
const md = MarkdownExit()
md.render('# markdown-exit')
typescript
// with the `new` keyword
const md = new MarkdownExit()
md.render('# markdown-exit')

Guides

  • Markdown Syntax
  • Redering
  • Plugins

Migrate from markdown-it

Drop-in replacement for markdown-it with enhancements, see Migration Guide for details.

diff
- import MarkdownIt from 'markdown-it'
+ import MarkdownExit from 'markdown-exit'

Credits

This project owes its foundation to the markdown-it community and all its contributors.

Authors of markdown-it

  • Alex Kocharin github/rlidwka
  • Vitaly Puzrin github/puzrin

Special Thanks

  • John MacFarlane for the CommonMark spec and reference implementations.
  • Definition owners of @types/markdown-it for the type definitions reference.
  • Anthony Fu for inspiring async rendering by markdown-it-async.

License

MIT License © Alex Kocharin, Vitaly Puzrin, SerKo

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

TypeScriptcommonmarkjavascriptmarkdownparser

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言