rehype-pretty-code icon indicating copy to clipboard operation
rehype-pretty-code copied to clipboard

Beautiful code blocks for Markdown or MDX.

Results 47 rehype-pretty-code issues
Sort by recently updated
recently updated
newest added

**Versions** Framework: [email protected] rehype-pretty-code: [email protected] next.config.mjs ```ts import nextMDX from '@next/mdx' import { transformerNotationHighlight } from '@shikijs/transformers' import rehypePrettyCode from 'rehype-pretty-code' /** @type {import('rehype-pretty-code').Options} */ const options = { theme:...

When using such options: ```ts const prettyCodeOptions: Options = { transformers: [transformerNotationDiff(), transformerNotationHighlight({})], getHighlighter: (options) => { return createHighlighter({ ...options, }); }, theme: { dark: "night-owl", light: "ayu-dark", }, };...

Hello! I was wondering if it were possible to add an option similar to `bypassInlineCode`, which skips inline code highlighting, but instead with ``-based code. This is for the (somewhat...

Here is the error: ``` chunk-GZD7INZN.js?v=2102d38d:3624 Uncaught Error: Expected `onClick` listener to be a function, instead got a value of `string` type. at getListener (chunk-GZD7INZN.js?v=2102d38d:3624:19) at accumulateSinglePhaseListeners (chunk-GZD7INZN.js?v=2102d38d:7195:32) at extractEvents$4...

Here is the code: ```` ```ts /Hello/4 const x: string = 'Hello world'; let y = 'Hello mama'; console.log(x + ' ' + y); // Hello world Hello mama ```...

If we pass in a JSON theme and want to highlight tokens inline (the `thing{:.tok}` syntax), this requires a name even if just one theme is passed in. There's no...

I've encountered an issue where the code highlight colouring falls apart once it encounters destructuring in TypeScript code blocks. My solution is to just comment out the destructuring to correctly...