FormidableLabs / prism-react-renderer

🖌️ Renders highlighted Prism output to React (+ theming & vendored Prism)
MIT License
1.88k stars 153 forks source link

Fixed undefined themes causing a runtime error. #213

Closed carloskelly13 closed 1 year ago

carloskelly13 commented 1 year ago

Addresses #212

The spread order of the internal highlight component was overriding the theme provided by props. This fixes the bug where not providing a theme (and falling back to the internal one) will work correctly.

How to test: