Skip to content
Agents tracked: 506 Releases (7d): 634 Agent status: 3 with issuesSince last limit reset: Claude 15d · Codex 0d For AI agents: Markdown Updated Nov 26, 2026

rehype-highlight

rehype plugin to add syntax highlighting to code blocks using highlight.js.

Markdown, editors and contentNPM

GitHubWebsite

1. License

License from npm.

github.com/rehypejs/rehype-highlight

From the package registry and GitHub, checked daily. Tap a verdict to see its source.How we checkedReport an error

What rehype-highlight does

rehype plugin to add syntax highlighting to code blocks using highlight.js.

rehype-highlight popularity

56 / 100
Gid Score, #1307 overall
6.6M
downloads a week, npm
333
GitHub stars
32
agent projects use it
rehype-highlight: downloads per weeknpm, rehype-highlight 6,580,172
rehype-highlight: GitHub starsrehypejs/rehype-highlight 333

Gid Score measures public popularity and activity, not quality. How the Gid Score is calculated

How rehype-highlight is used

  • rehype-highlight is a dependency in 32 of the 6,258 public GitHub projects set up for AI coding agents that we scanned (0.7% of the 4,867 JavaScript/TypeScript ones), #32 of 149 in markdown, editors and content.
  • Counting the projects our scan samples by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750), it appears in 111; those are left out of every share on this page.
  • The most used alternative in our scan is Shiki (85 projects).
  • Projects that use it most often also use remark-gfm (93.8%), react-markdown (90.6%), React (100.0%).

By coding agent

20 projects, 0.6%
13 projects, 0.5%
13 projects, 0.4%
6 projects, 1.3%

Often used with

In 93.8% of its projects
In 90.6% of its projects
In 100.0% of its projects
In 75.0% of its projects
In 93.8% of its projects
In 46.9% of its projects
In 59.4% of its projects
In 43.8% of its projects

More about rehype-highlight

Funding
  • GitHub Sponsors: https://github.com/unifiedjs
  • Open Collective: https://opencollective.com/unified
  • thanks.dev: https://thanks.dev/u/gh/rehypejs
  • 25 GitHub sponsors

See all

More in Markdown, editors and content

Alternatives

rehype-highlight This page

MITGid 566.6M/wk

Shiki

Beautiful syntax highlighter powered by TextMate grammars with superior accuracy.

MITGid 7642.6M/wk

React Syntax Highlighter

React component for syntax highlighting code with Prism.js or Highlight.js.

MITGid 659.9M/wk

Compare rehype-highlight with another tool

Get started

Install it.

npm install rehype-highlight

No step-by-step start for rehype-highlight yet: we have not written its hand-checked card.