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

I'm working on a project that's a yarn monorepo, with one package being an app that consumes `rehype-pretty-code`. I had an issue with importing (ESM/CJS rubbish) that I was able...

In addition to highlighting chars using a search string, allow the user to specify char ranges to be highlighted using a line/column syntax. This would provide a way to work...

**UPDATE** You can already use the copy button plugin. Install through https://jsr.io: ```sh npx jsr add @rehype-pretty/transformers pnpm dlx jsr add @rehype-pretty/transformers bunx jsr add @rehype-pretty/transformers yarn dlx jsr add...

enhancement

Hello! Thank you for this library, it has saved my bacon. I have a question, is it possible to take these metastrings, and have them as data-attributes in the `pre`...

The example css did not work properly for conditional showLineNumbers. Used the css from the website that shows the working example. - Line 45-53 https://github.com/rehype-pretty/rehype-pretty-code/blob/master/website/src/app/globals.css Previous sizing of 3rem for...

Is this expected ? Thanks! **- Works** \```tsx showLineNumbers /age/#v /name/#v /setAge/#s /setName/#s /50/#i /"Taylor"/#i const [age, setAge] = useState(50) const [name, setName] = useState("Taylor") \``` **- Does now work**...

bug
good first issue

this `title="fib.sh" showLineNumbers /index/#v` works but this `/index/#v title="fib.sh" showLineNumbers` doesn't. In general `showLineNumbers` does not work when there's a highlighted group chars and and the highlighted group chars does...

enhancement
help wanted

I have come across a problem with highlighting sections of source code using a pattern/substring using [Nextra](https://github.com/shuding/nextra). I am presenting code in Rust that implements lifetimes annotations marked with '...

bug
help wanted
good first issue

Hi I'm using Next.js 14 with rehype-pretty-code. I'm trying to highlight some code on the client, however I'm running into the case where whitespace isn't being preserved and i'm not...