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 tried to highlight multiple words like this: ``` ```sh /"Nenad Novakovic"|"[email protected]"/ ``` And also like this: ``` ```sh /"Nenad Novakovic"/ /"[email protected]"/ ``` But neither approach has worked. In the...

dont remove default background-color from themes

Any working example with Astro MDX?

Using the following snippet where I'm highlighting `onRecvPacket` and noticed `onRecvPacketProcessing` is getting highlighted too: ``````sh ```solidity /onRecvPacket/#g ``` `````` ![CleanShot 2024-01-17 at 22 32 56@2x](https://github.com/atomiks/rehype-pretty-code/assets/23618431/cb492bb1-0cc4-41c9-b11b-a25d05f7609c) Here's a stackblitz playground...

enhancement

Hi, I was integrating `[rehype-pretty-code](https://github.com/atomiks/rehype-pretty-code)` with `[mdx-bundler](https://www.npmjs.com/package/mdx-bundler}` and notice that, the highlight is not working as expected. But When I pass the `defaultLang` it works fine with that language only....

### Goal I'd like to write MDX file, which contains code examples for multiple languages. In order to reduce amount of space taken by code examples, it would be nice...

- [x] Astro https://github.com/atomiks/rehype-pretty-code/pull/135 - [x] #196 - [ ] Nuxt integration example - [x] #199

enhancement

It would be nice if it was easily possible to mark certain parts of code examples collapsible (imports in my case) with a little [+] or [-] icon. Is this...

I want to pass a variable to `rehype-pretty-code` as content in MDX, something like this: ```mdx ```mdx title="Demo.mdx" {frontmatter.rawmdx} \``` ``` > `frontmatter.rawmdx` is created by `astro-m2dx` Is It possible?...

enhancement

Hi! ## Context I needed to match a pattern containing a `/` character, therefore `/` being used as the hard-coded delimiter proved limiting. ## Proposal Would you consider a PR...