# rehype-expressive-code

> Rehype plugin for Expressive Code, a modular syntax highlighting & annotation engine for presenting source code on the web. Offers full VS Code theme support, editor & terminal frames, copy to clipboard, text markers, collapsible sections, and more.

Latest version **0.44.2** (published 2026-08-31) · MIT license · 0 weekly downloads

## Install

```sh
npm install rehype-expressive-code
pnpm add rehype-expressive-code
yarn add rehype-expressive-code
bun add rehype-expressive-code
```

## Health

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

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

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.44.2 |
| Published | 2026-08-31 |
| First published | 2024-04-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 38 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 965 |
| Author | Tibor Schiemann |
| Maintainers | hippotastic |
| Keywords | code-blocks, documentation, expressive-code, shiki, syntax-highlighting |

## Links

- npm: https://www.npmjs.com/package/rehype-expressive-code
- Repository: https://github.com/expressive-code/expressive-code
- Homepage: https://github.com/expressive-code/expressive-code#readme
- Issues: https://github.com/expressive-code/expressive-code/issues
- npm.io page: https://npm.io/package/rehype-expressive-code

## Dependencies (1)

- [expressive-code](https://npm.io/package/expressive-code.md) ^0.44.2

## Alternatives

- [@oh-my-pi/pi-natives](https://npm.io/package/@oh-my-pi/pi-natives.md) — 51.8K weekly downloads
- [@capgo/capacitor-light-sensor](https://npm.io/package/@capgo/capacitor-light-sensor.md) — 3.0K weekly downloads
- [@heyhuynhgiabuu/pi-diff](https://npm.io/package/@heyhuynhgiabuu/pi-diff.md) — 492 weekly downloads
- [@lotsa/verdant-lang-asm](https://npm.io/package/@lotsa/verdant-lang-asm.md) — 38 weekly downloads
- [new-era-syntax](https://npm.io/package/new-era-syntax.md) — 20 weekly downloads

## Recent versions

- 0.44.2 (latest) — 2026-08-31
- 0.44.1 — 2026-07-20
- 0.44.0 — 2026-06-25
- 0.43.1 — 2026-06-09
- 0.43.0 — 2026-06-08
- 0.42.0 — 2026-05-04
- 0.41.7 — 2026-02-23
- 0.41.6 — 2026-01-15
- 0.41.5 — 2025-12-16
- 0.41.4 — 2025-12-11
- 0.41.3 — 2025-07-05
- 0.41.2 — 2025-04-22
- 0.41.1 — 2025-04-13
- 0.41.0 — 2025-04-12
- 0.40.2 — 2025-02-11
- … 18 more at https://npm.io/package/rehype-expressive-code/versions

## README

# rehype-expressive-code [![NPM version](https://img.shields.io/npm/v/rehype-expressive-code.svg)](https://www.npmjs.com/package/rehype-expressive-code) [![NPM downloads](https://img.shields.io/npm/dm/rehype-expressive-code.svg)](https://npmjs.org/package/rehype-expressive-code)

This package is a [unified](https://github.com/unifiedjs/unified) ([rehype](https://github.com/rehypejs/rehype)) plugin to automatically render code blocks in your markdown / MDX documents using [Expressive Code](https://expressive-code.com/).

## Documentation

[Read the Expressive Code docs](https://expressive-code.com/) to learn more about the features provided by Expressive Code and this integration.

## When should I use this?

When you're using markdown / MDX and want to improve the design and functionality of all contained code blocks using Expressive Code.

## Installation

Read the [installation instructions](https://expressive-code.com/installation/) to learn how to install Expressive Code.

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