Open shuent opened 3 years ago
I was using remark-prism yesterday (4-16-2021) to do syntax highlighting for some code on my portfolio and I ran across the exact same issue :/. Hopefully jsdom get's a fix or the project shifts to a different package.
If you’re using next.js, you need to run remark-prism on the server side of the tender (getStaticProps etc), not on the client side.
When I use this
remark-prism
for processing markdown, it causes error.At First, This seems that markdown file does not include the code surrounded with ``` but it was not.
This error occurs when this
MdTransformer.tsx
is read Because below also causes Error.Other remark-plugin works fine but only prism plugin does not.
versions