You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But I get this error when I first load the page:
And it loads correctly when I refresh.
It seems like there's an error with the pre element
I think rehype-shiki will add strings directly to the style attribute which is unsupported in react.
What should I do to convert them to {color: ""}?
The text was updated successfully, but these errors were encountered:
I have been trying to add syntax highlighting in next.js with next-mdx-remote and rehype-shiki
This is my code:
And the page:
But I get this error when I first load the page:
And it loads correctly when I refresh.
It seems like there's an error with the pre element
I think rehype-shiki will add strings directly to the style attribute which is unsupported in react.
What should I do to convert them to {color: ""}?
The text was updated successfully, but these errors were encountered: