Closed Ansub closed 2 weeks ago
I played around with changing the docs banner file from a ‘tsx‘ to an ‘mdx‘ and that corrected the syntax highlighting. I haven't cleaned it up to open the PR yet, but I believe that this is a clean solution to this issue.
Description 📝
The ComponentPreview component is not highlighting the code properly. Below is the image that shows the issue.
Link 🔗
https://syntaxui.com/blocks/banner
Screenshots 📸