Closed kennetpostigo closed 3 months ago
Do you have a reproduction? I'm not sure what would cause this. The grid: true
prop could cause a problem, but I don't see why here. Some alternative issue: https://github.com/rehype-pretty/rehype-pretty-code/issues/180
Hi I'm using Next.js 14 with rehype-pretty-code. I'm trying to highlight some code on the client, however I'm running into the case where whitespace isn't being preserved and i'm not sure why, I copied the server component example to ported it to run on the client:
It ends up rendering like so:
The provided code string was:
What can I do to prevent whitespace from being removed when highlighting on the client?