rehype-pretty-code
rehype-pretty-code copied to clipboard
Beautiful code blocks for Markdown or MDX.
Hi! Thanks for the great plugin! Can a custom Shiki bundle be used with this plugin? Currently, even though I pass my custom Shiki highlighter into the getHighlighter, the default...
Allows bypassing inline code blocks from being transformed by `rehype-pretty-code`. Config: ```js /rehypePrettyCode/ import { unified } from "unified"; import remarkParse from "remark-parse"; import remarkRehype from "remark-rehype"; import rehypeStringify from...
`@shikijs/twoslash` does not work on `rehype-pretty-code` `transformers` options, which the docs say [here](https://rehype-pretty.pages.dev/#transformers) that it should work. However, so far, it is not working. This is a sample of the...
I'm trying to include examples of how to use rehype pretty code in my tutorial and when I want to highlight the characters you need to use to highlight a...
The [Shiki dual-themes documentation](https://shiki.matsu.io/guide/dual-themes) shows that it adds theme keys to the \ element in the in-line styles: ```html ``` And the current [rehype-pretty-code documentation](https://rehype-pretty.pages.dev/#multiple-themes-dark-and-light-mode) seems to imply that the...
Check out this example 👇 (It should highlight four characters in total, but it only highlights two of them.) ```` ```shell showLineNumbers title="transformations" /r/1 /b/1 /c/3,6 raccoon -> baccoon #...
## Description For those of us transitioning from a previous module to rehype-pretty-code we may already have code meta which would break prior versions of documentation. For example - `title=`...
The `getHighlighter` function has been deprecated and leads to memory issues from what I read.