Unverified Commit b08bf488 authored by Marcos Hernanz's avatar Marcos Hernanz Committed by GitHub

docs(mdx): fix package name in .md handling section (#97131)

The MDX guide’s “Handling `.md` files” section referenced `next/mdx`,
but the package used throughout the guide is `@next/mdx`.
This updates the text to match the correct package name to avoid
confusion for readers configuring `.md` support.

Attribution: This change was originally authored by @pavan-sh in #89710.
Co-authored-by: 's avatarPavan Shinde <pavann97@gmail.com>
parent e0941e65
...@@ -74,7 +74,7 @@ This allows `.mdx` files to act as pages, routes, or imports in your application ...@@ -74,7 +74,7 @@ This allows `.mdx` files to act as pages, routes, or imports in your application
### Handling `.md` files ### Handling `.md` files
By default, `next/mdx` only compiles files with the `.mdx` extension. To handle `.md` files with webpack, update the `extension` option: By default, `@next/mdx` only compiles files with the `.mdx` extension. To handle `.md` files with webpack, update the `extension` option:
```js filename="next.config.mjs" ```js filename="next.config.mjs"
const withMDX = createMDX({ const withMDX = createMDX({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment