# @dprint/markdown

> Wasm module for dprint-plugin-markdown.

Latest version **0.24.0** (published 2026-09-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dprint/markdown
pnpm add @dprint/markdown
yarn add @dprint/markdown
bun add @dprint/markdown
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; no vulnerabilities; has provenance; recently updated; high maintenance score; high quality score.

Warnings: low downloads; no esm support; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.24.0 |
| Published | 2026-09-10 |
| First published | 2021-06-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 745.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 58 |
| Author | David Sherret |
| Maintainers | dsherret |
| Keywords | markdown, code, formatter, dprint |

## Links

- npm: https://www.npmjs.com/package/@dprint/markdown
- Repository: https://github.com/dprint/dprint-plugin-markdown
- Homepage: https://github.com/dprint/dprint-plugin-markdown#readme
- Issues: https://github.com/dprint/dprint-plugin-markdown/issues
- npm.io page: https://npm.io/package/@dprint/markdown

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 0.24.0 (latest) — 2026-09-10
- 0.23.3 — 2026-09-03
- 0.23.2 — 2026-08-29
- 0.23.1 — 2026-08-27
- 0.23.0 — 2026-08-26
- 0.22.1 — 2026-05-22
- 0.22.0 — 2026-05-15
- 0.21.1 — 2026-02-06
- 0.20.0 — 2025-10-15
- 0.19.0 — 2025-06-23
- 0.18.0 — 2025-02-27
- 0.17.8 — 2024-08-26
- 0.17.7 — 2024-08-26
- 0.17.6 — 2024-08-22
- 0.17.5 — 2024-08-19
- … 38 more at https://npm.io/package/@dprint/markdown/versions

## README

# @dprint/markdown

npm distribution of [dprint-plugin-markdown](https://github.com/dprint/dprint-plugin-markdown).

Use this with [@dprint/formatter](https://github.com/dprint/js-formatter) or just use @dprint/formatter and download the [dprint-plugin-markdown Wasm file](https://github.com/dprint/dprint-plugin-markdown/releases).

## Example

```ts
import { createFromBuffer } from "@dprint/formatter";
import { getPath } from "@dprint/markdown";
import * as fs from "fs";

const buffer = fs.readFileSync(getPath());
const formatter = createFromBuffer(buffer);

console.log(formatter.formatText("test.md", "#   Some Title    "));
```

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