Rehype Pretty Code is a Rehype plugin powered by the Shiki syntax highlighter that provides beautiful code blocks for Markdown or MDX. It works on both the server at build-time (avoiding runtime syntax highlighting) and on the client for dynamic highlighting. Enjoy the accuracy and granularity of VS Code’s syntax highlighting engine and the popularity of its themes ecosystem - use any VSCode theme you want.

Features

  • Line Numbers and Line Highlighting
  • Editor-Grade Highlighting
  • Documentation available
  • Word Highlighting
  • Inline Code Highlighting
  • Context Aware Inline Code
  • ANSI Highlighting

Project Samples

Project Activity

See All Activity >

Categories

Markdown Editors

License

MIT License

Follow Rehype Pretty Code

Rehype Pretty Code Web Site

Other Useful Business Software
Full-stack observability with actually useful AI | Grafana Cloud Icon
Full-stack observability with actually useful AI | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Rehype Pretty Code!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

TypeScript

Related Categories

TypeScript Markdown Editors

Registered

2024-09-24