prism-react-renderer icon indicating copy to clipboard operation
prism-react-renderer copied to clipboard

🖌️ Renders highlighted Prism output to React (+ theming & vendored Prism)

Results 35 prism-react-renderer issues
Sort by recently updated
recently updated
newest added

Fixes #149 . This solution is inspired by the [article](https://www.joshwcomeau.com/react/dark-mode/) that @jpdriver linked in the above issue. There are no breaking changes. The solution works as follow: 1. Modify the...

I used the keys of `Prism.languages` to update the type for `Language`, which was missing some included languages.

### Context: - https://github.com/facebook/docusaurus/issues/6246 - https://github.com/facebook/docusaurus/pull/7373 - https://github.com/FormidableLabs/prism-react-renderer/issues/112 ### Useful info: - https://www.joshwcomeau.com/react/dark-mode/

high priority

I was having a hard time creating an array of languages whenever I used this package. I added and exported an array of languages and also the type `Language`. There...

Hey, is there a way to add prismjs plugins as autolinker? https://prismjs.com/plugins/autolinker/ Haven't found a solution yet. If there isn't a solution existing, this should be a suggestion to add...

Related to https://github.com/FormidableLabs/prism-react-renderer/issues/2 and https://github.com/facebook/docusaurus/issues/3318 Prism comes with a useful plugin: [diff-highlight](https://prismjs.com/plugins/diff-highlight/) for combining syntax highlighting and diff highlighting. Since prism-react-renderer does not support plugins, it would be interesting to...

enhancement

# Overview I followed the FAQ **How do I add more language highlighting support?** on `README.md` to add additional languages other than the languages mentioned [here](https://github.com/FormidableLabs/prism-react-renderer/blob/master/src/vendor/prism/includeLangs.js). However, the error popped...

Hi, it seems this doesn't work for react native (anymore?). I wasn't able to get it run at least. Could you possibly add some guidence to the readme? Thanks Twos

# The problem I am trying to use `prism-react-renderer` with Nextjs and Chakra-UI, however when I run `next dev` which starts the Nextjs development server, I am not able to...

It would be great if one of the languages we can pass is "sol" or "solidity". Solidity syntax highlighting would come in really handy for a blog post I am...