Skip to content

Introduction

markdown-exit is a modern Markdown toolkit—parser + renderer. Fully CommonMark-compliant and easily extended with plugins. Built in TypeScript, shipping strong types for a smoother DX and type-safe development.

It is a TypeScript rewrite of markdown-it, designed as a drop-in replacement with thoughtful enhancements.

Differences from markdown-it

Why a separate codebase from markdown-it?

TypeScript offers better type safety and a superior development experience. It also makes the code easier to read and maintain.

For instance, while the TypeScript rewriting, I discovered several issues in the original JavaScript code that stemmed from the lack of type definitions.

Unfortunately, the author of markdown-it has stated that they do not use TypeScript and seems the repo is not actively maintained.

Plugin Ecosystem

markdown-exit supports a plugin system that enables custom syntax and rendering. Create your own plugins or adopt community ones. It's compatible with markdown-it plugins and works out of the box, so migration stays simple.

For more details, see the Plugin Guide.

Credits

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

Authors of markdown-it

Special Thanks

Released under the MIT License.