# rehype-highlight — card for AI agents

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

Category: Markdown, editors and content · npm package `rehype-highlight` · latest version 7.0.2 (checked 2026-11-01)
Install: `npm install rehype-highlight`
License: MIT (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Numbers (AgentGid data)
- Gid Score: 56.5 (#1307 of all tools, 62 of 149 in its category)
- Used in 32 public projects set up for AI coding agents (0.5%)
- Downloads last week: 6,580,172 (as of 2026-11-24), +103.7% over 4 weeks
- GitHub stars: 333 (as of 2026-11-24)
- Last push: 2025-02-21

## Often used with
remark-gfm 93.8%, react-markdown 90.6%, React 100.0%, Lucide React 75.0%, Tailwind CSS 93.8%, Framer Motion 46.9%

## Checked alternatives (same job)
- Shiki: https://agentgid.com/tools/shiki/agent.md
- React Syntax Highlighter: https://agentgid.com/tools/react-syntax-highlighter/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/rehype-highlight/
- Homepage: https://github.com/rehypejs/rehype-highlight#readme
- Repository: https://github.com/rehypejs/rehype-highlight

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
