11 min read
Styling Code Blocks with Rehype Pretty Code in Next.js
How this blog highlights code at build time with rehype-pretty-code and Velite: choosing a theme, line numbers, line and word highlighting, titles, inline code, and styling the output through data attributes.