hashicorp / next-mdx-remote

Load MDX content from anywhere
Mozilla Public License 2.0
2.73k stars 141 forks source link

Upgrade to latest @mdx-js/mdx version? #432

Closed DavieReid closed 9 months ago

DavieReid commented 9 months ago

Hello,

I noticed that next-mdx-remote uses version 2.2.1 of @mdx-js/mdx which in turn uses version 10.0.0 of unified.

I would like to use the latest version of the rehype-pretty-code plugin which requires version 11 of unified.

This issue is also caused by the unified versions.

Would you be open to a contribution that updates @mdx-js/mdx and @mdx-js/react to their latest versions?

DavieReid commented 9 months ago

closing as Dupe of https://github.com/hashicorp/next-mdx-remote/issues/419

karlhorky commented 7 months ago

I can confirm that next-mdx-remote@0.0.0-canary-20240321205249 (canary version from the v5 PR) is compatible with remark-gfm@4.0.0 🎉

(in my analysis, this most likely extends to any other plugins such as rehype-pretty-code which depend on MDX v3 or newer versions of the Unified dependencies)