# @bangle.dev/pm-markdown

> A modern collection of ProseMirror packages for building powerful editing experiences

Latest version **2.0.0-alpha.8** (published 2025-01-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bangle.dev/pm-markdown
pnpm add @bangle.dev/pm-markdown
yarn add @bangle.dev/pm-markdown
bun add @bangle.dev/pm-markdown
```

## Health

**Score 45/100 (D)** — status: stable.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.0.0-alpha.8 |
| Published | 2025-01-05 |
| First published | 2025-01-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 35.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 679 |
| Author | Kushan Joshi |
| Maintainers | kepta |
| Keywords | prosemirror, rich text editor, editor, typescript |

## Links

- npm: https://www.npmjs.com/package/@bangle.dev/pm-markdown
- Repository: https://github.com/bangle-io/banger-editor
- Homepage: https://bangle.io
- Issues: https://github.com/bangle-io/banger-editor/issues
- npm.io page: https://npm.io/package/@bangle.dev/pm-markdown

## Dependencies (2)

- [markdown-it](https://npm.io/package/markdown-it.md) ^14.0.0
- [@types/markdown-it](https://npm.io/package/@types/markdown-it.md) ^14.1.2

## Alternatives

- [@openai/codex-sdk](https://npm.io/package/@openai/codex-sdk.md) — 731.4K weekly downloads
- [babel-plugin-transform-react-jsx](https://npm.io/package/babel-plugin-transform-react-jsx.md) — 565.0K weekly downloads
- [babel-helper-remove-or-void](https://npm.io/package/babel-helper-remove-or-void.md) — 508.5K weekly downloads
- [@pnpm/store-controller-types](https://npm.io/package/@pnpm/store-controller-types.md) — 186.9K weekly downloads
- [react-native-signature-canvas](https://npm.io/package/react-native-signature-canvas.md) — 155.6K weekly downloads

## Recent versions

- 2.0.0-alpha.8 (latest) — 2025-01-05
- 2.0.0-alpha.20 (alpha) — 2026-07-03
- 2.0.0-alpha.19 — 2026-07-01
- 2.0.0-alpha.18 — 2025-03-30
- 2.0.0-alpha.17 — 2025-02-16
- 2.0.0-alpha.16 — 2025-02-16
- 2.0.0-alpha.15 — 2025-02-10
- 2.0.0-alpha.14 — 2025-01-08
- 2.0.0-alpha.13 — 2025-01-05
- 2.0.0-alpha.12 — 2025-01-05
- 2.0.0-alpha.11 — 2025-01-05
- 2.0.0-alpha.10 — 2025-01-05
- 2.0.0-alpha.9 — 2025-01-05

## README

![Node.js CI](https://github.com/bangle-io/banger/workflows/Node.js%20CI/badge.svg) [![Netlify Status](https://api.netlify.com/api/v1/badges/6d032d9e-c63a-44e6-ae6d-d36a4905a147/deploy-status)](https://app.netlify.com/sites/bangle/deploys)

## psst we have great documentation at https://banger

## What is Banger Editor ?

Banger Editor is a collection of prosemirror code for building powerful editing experiences.

- :battery: **Batteries included**\
  We expose plenty of components to help you get started with your Editor.

- **Insanely powerful API**\
  Bangle uses [Prosemirror](https://prosemirror.net/) to provide an API which can help you build the next google docs including [collaboration](https://prosemirror.net/examples/collab/#edit-Example).

- **Vanilla JS**\
  Bangle is written in a framework agnostic way, so that you can focus on building the editor and not learning a new framework. That said, we have support for React and I have plans to add Vue support in the coming months.

- **Customize UI with React (more frameworks to come)**\
  Doing UI in vanilla Javascript is not fun. Bangle comes with first party React support and React components (the ones starting with `@bangle.dev/react-`) to add some extra :nail_care: oomph to your Editor.

- **:car: Fast as a racing car**\
  Bangle is as fast as a rich text editor can be; try pasting a really long document in one of its example (:wink: don't forget to compare it with your current favourite editor).

## Getting started

### Installation

**Peer dependencies**
As you can see Banger is not traditional Prosemirror wrapper library. It expects you to be familiar with prosemirror and its packages and use them directly. It expects some of the `prosemirror-*` packages to be installed in your project.

If you are starting blank, I recommend installing all the following `prosemirror-*` packages:

```sh
npm install orderedmap prosemirror-commands prosemirror-dropcursor prosemirror-flat-list prosemirror-gapcursor prosemirror-history prosemirror-inputrules prosemirror-keymap prosemirror-model prosemirror-schema-basic prosemirror-state prosemirror-transform prosemirror-view
```
> Modern bundlers will remove the unused packages from your bundle, so you don't have to worry about bundle size.

> If you know what you are doing or using a Prosemirror wrapper library like `tiptap` you can skip installing the above packages as they might already be installed in your project.

**Installing Banger**

```sh
npm install @bangle.dev/pm @bangle.dev/banger
```

### Prosemirror Imports

You can import the prosemirror packages from `@bangle.dev/pm` (which is a convenience re-export of `prosemirror-*` packages).

```ts
// Option 1: Recommended
import { EditorState, EditorView } from '@bangle.dev/pm';

// Option 2: Importing specific packages
import { EditorState } from '@bangle.dev/pm/state';
import { EditorView } from '@bangle.dev/pm/view';

// Option 3: Use prosemirror-* packages directly
import { EditorState } from 'prosemirror-state';
import { EditorView } from 'prosemirror-view';
```

---
_Source: https://npm.io/package/@bangle.dev/pm-markdown · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
