rehype-prism
A rehype plugin that highlights code blocks in HTML using Prism. It is used when generating documentation pages, and the Mapbox docs team no longer maintains it.
Share on XLicense: MIT
Overview
rehype-prism is a rehype plugin that highlights code blocks in HTML with Prism, through the refractor library. It looks at pre and code elements and uses the language class on the code element to pick the language. It can be used with rehype directly or in a unified pipeline that converts Markdown. It is no longer used or maintained by the Mapbox docs team.
Key features
- Highlights pre and code blocks using Prism via refractor
- Language chosen from a language-name class on the code element
- ignoreMissing option skips unknown languages instead of throwing
- alias option registers alternative language names
Best for
Node based documentation builds that need code highlighting in rehype. It is unmaintained since April 2024, and the README suggests lighter ways to highlight in the browser.
- Upstream
- mapbox/rehype-prism
- Fork on GitHub
- Guo-astro/rehype-prism
- Upstream stars
- 173
- Category
- Developer tools and infrastructure
- Language
- JavaScript
- License
- MIT
- Forked
- 2020-11-01
- Sync status
- In syncLast synced 2026-10-14
More in Developer tools and infrastructure
Midscene is a vision-based GUI agent and testing framework for end-to-end tests of web, mobile, and desktop apps. Describe interface actions and expected results in natural language, then use it to interact with screens and verify what users see.
Forked 2026-10-13Last synced 2026-10-14License: MITDeveloper tools and infrastructureGitHub
xtool builds, signs, and deploys iOS apps from SwiftPM on Linux, Windows, and macOS. It helps developers work on iOS apps without relying only on Xcode.
Forked 2026-10-12Last synced 2026-10-14License: MITDeveloper tools and infrastructureGitHub
A daily monitor for emerging AI model, product, tool, and repo names, helping SEO and content teams spot new search opportunities before keyword tools do.
Forked 2026-10-12Last synced 2026-10-14License: MITDeveloper tools and infrastructureGitHub
iPhone Use lets Codex control a real iPhone over USB through WebDriverAgent for app navigation, page reading, gestures, and text entry. It automates phone tasks and shows a live screen preview.
Forked 2026-10-11Last synced 2026-10-14License: MITDeveloper tools and infrastructureGitHub