Jan 27, 2025
This blog uses Rehype Pretty Code, which I introduced in a previous post. With Rehype Pretty Code, you can display a diff by setting the language to diff, like this: Next, import transformerNotationDiff from @shikijs/transformers: Then pass it as a Rehype Pretty Code option.…