New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

markdown-exit

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

markdown-exit

A TypeScript rewrite of markdown-it with enhancements

latest
Source
npmnpm
Version
1.0.0-beta.9
Version published
Weekly downloads
25K
-23.13%
Maintainers
1
Weekly downloads
 
Created
Source

markdown-exit banner

markdown-exit

npm version bundle License

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.1.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.

npm i markdown-exit
v0.x @legacy

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

npm i markdown-exit@legacy

Usage

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')
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.

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')

Guides

Migrate from markdown-it

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

- 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

Special Thanks

License

MIT License © Alex Kocharin, Vitaly Puzrin, SerKo

Keywords

markdown

FAQs

Package last updated on 04 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts