Next.js Discord

Discord Forum

What's the status of `@next/mdx` w/ `providerImportSource: '@mdx-js/react'`?

Unanswered
.wilbsy posted this in #help-forum
Open in Discord
I can't get the MDXProvider to work in the App Router. Simply rendering MDX files with the app dir works, but I can't get it to use my custom components in place of the standard HTML tags. The docs seem kind of old and/or incomplete.
Has anyone been able to get it to work? (I tried mdxRs: false.)
Also, wondering if anyone has been able to get remark and rehype to work in the App Router.
Thanks!

0 Replies