rehype-pretty/rehype-pretty-code
Beautiful code blocks for Markdown or MDX. observed · 2026-08-28
Health v2 · maintenance only
87/100
- Activity 94
- Release rhythm 71
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 124
- age_days: 1730
- days_rel: 39
- days_push: 39
- n_releases_24m: 4
Adoption not part of the score
1317 stars · 72 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
A Rehype plugin powered by the Shiki syntax highlighter that renders beautiful, editor-grade code blocks in Markdown or MDX. It supports VS Code themes, line and word highlighting, inline code highlighting, and ANSI output, working at build time or in the browser.
Use cases
- highlight code blocks in markdown docs
- add syntax highlighting to MDX blog posts
- use VS Code themes for code snippets in a static site
- highlight specific lines or words in code examples
- render ANSI terminal output in documentation
- avoid runtime syntax highlighting by highlighting at build time
When to choose
- you build docs or blogs with Markdown/MDX in SvelteKit, Astro, Next.js, or similar
- you want VS Code-accurate highlighting with any VS Code theme
- you need line/word/inline code highlighting features
When to avoid
- your content is not Markdown/MDX or not processed through the unified/Rehype pipeline
- you need highlighting in a non-JavaScript stack without Node.js
- you want a standalone highlighter library rather than a Rehype plugin
Facets
plugin · maturity active
markdown templating documentation web-development frontend documentation developer-tools browser rehype-plugin shiki mdx unified-ecosystem code-blocks vscode-themes syntax-highlighting nodejs web-server
3 sources
- readme: https://github.com/rehype-pretty/rehype-pretty-code · fetched 2026-08-28 · b0f75f65991e
- homepage: https://rehype-pretty.pages.dev · fetched 2026-08-29 · d0eb85e145fb
- registry_npm: https://registry.npmjs.org/rehype-pretty-code · fetched 2026-08-29 · e05e3e18f657
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rehype-pretty/rehype-pretty-code | main | 87 |
For agents
markdown · JSON · MCP: product_card(name="rehype-pretty/rehype-pretty-code")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem