# rehype-pretty-code — card for AI agents

Syntax highlighting plugin for rehype to render beautiful code blocks in Markdown/MDX.

Category: Markdown, editors and content · npm package `rehype-pretty-code` · latest version 0.14.5 (checked 2026-11-01)
Install: `npm install rehype-pretty-code`
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: 45.6 (#2474 of all tools, 95 of 149 in its category)
- Used in 17 public projects set up for AI coding agents (0.3%)
- Downloads last week: 959,343 (as of 2026-11-24), +33.5% over 4 weeks
- GitHub stars: 1,317 (as of 2026-11-24)
- Last push: 2026-11-04

## Often used with
Next.js 89.7%, Shiki 79.5%, clsx 76.9%, Tailwind Merge 76.9%, remark-gfm 76.9%, Lucide React 76.9%

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

## Links
- AgentGid page: https://agentgid.com/tools/rehype-pretty-code/
- Homepage: https://rehype-pretty.pages.dev
- Repository: https://github.com/rehype-pretty/rehype-pretty-code

---
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.
