# @bytemd/plugin-highlight-ssr

> ByteMD plugin to highlight code blocks (SSR compatible)

Latest version **1.22.0** (published 2025-02-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @bytemd/plugin-highlight-ssr
pnpm add @bytemd/plugin-highlight-ssr
yarn add @bytemd/plugin-highlight-ssr
bun add @bytemd/plugin-highlight-ssr
```

## Health

**Score 35/100 (D)** — status: maintenance-mode.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.22.0 |
| Published | 2025-02-12 |
| First published | 2020-10-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 815.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1379 |
| Author | Rongjian Zhang |
| Maintainers | pd4d10 |

## Links

- npm: https://www.npmjs.com/package/@bytemd/plugin-highlight-ssr
- Repository: https://github.com/bytedance/bytemd
- Homepage: https://github.com/bytedance/bytemd#readme
- Issues: https://github.com/bytedance/bytemd/issues
- npm.io page: https://npm.io/package/@bytemd/plugin-highlight-ssr

## Dependencies (1)

- [rehype-highlight](https://npm.io/package/rehype-highlight.md) ^6.0.0

## Recent versions

- 1.22.0 (latest) — 2025-02-12
- 1.21.0 — 2023-03-30
- 1.20.2 — 2023-01-29
- 1.20.1 — 2023-01-29
- 1.20.0 — 2023-01-04
- 1.19.0 — 2023-01-03
- 1.18.0 — 2022-12-21
- 1.17.4 — 2022-10-14
- 1.17.3 — 2022-10-13
- 1.17.2 — 2022-07-21
- 1.17.1 — 2022-07-08
- 1.17.0 — 2022-07-06
- 1.16.0 — 2022-06-29
- 1.15.0 — 2022-05-17
- 1.14.0 — 2022-05-09
- … 28 more at https://npm.io/package/@bytemd/plugin-highlight-ssr/versions

## README

# @bytemd/plugin-highlight-ssr

[![npm](https://img.shields.io/npm/v/@bytemd/plugin-highlight-ssr.svg)](https://npm.im/@bytemd/plugin-highlight-ssr)

ByteMD plugin to highlight code blocks (SSR compatible)

## Usage

```js
import highlight from '@bytemd/plugin-highlight-ssr'
import { Editor } from 'bytemd'
import 'highlight.js/styles/default.css'

new Editor({
  target: document.body,
  props: {
    plugins: [
      highlight(),
      // ... other plugins
    ],
  },
})
```

## License

MIT

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