Open hsjobeki opened 6 months ago
The next-mdx-remote
uses the @mdx-js/mdx
version 2, but @next/mdx
uses version 3, which both depends on different version of unified
.
So, for now, remark-directive@2
is compatible with the next-mdx-remote
, remark-directive@3
is compatible with the @next/mdx
With this regard you should employ remark-directive@2.0.1
for the next-mdx-remote
, I suppose.
The next-mdx-remote uses the @mdx-js/mdx version 2, but @next/mdx uses version 3, which both depends on different version > of unified.
Thanks i didn't know where the difference came from. I guess this will be fixed by #425
Hi @hsjobeki, next-mdx-remote
v5 is now compatible with MDX ver.3. Can you check the issue again, and close it, if it is resolved.
Some remark / rehype plugins fail unexpectedly with next-mdx-remote, while they dont fail with nextMDX
In my concrete example "remark-directive" works with
nextMDX
but fails withnext-mdx-remote
Also reading the troubleshooting page didn't help any further: https://mdxjs.com/docs/troubleshooting-mdx/
Works :heavy_check_mark:
Trying to compile it with next-mdx-remote :red_square:
Produces the following error message.
While compiling the same source with
mdx
from@next/mdx
is just fine.I dont understand whats the difference here. I would be very pleased if somebody helped me figure this out. :pray: