rehype-pretty-code
rehype-pretty-code copied to clipboard
Beautiful code blocks for Markdown or MDX.
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 ``` ``````  Here's a stackblitz playground...
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
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?...
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...