diff --git a/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx b/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx index 590bb44c4b..fcb919c1b3 100644 --- a/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx +++ b/docs/02-app/01-building-your-application/07-configuring/05-mdx.mdx @@ -60,9 +60,9 @@ export default withMDX(nextConfig) This allows `.md` and `.mdx` files to act as pages, routes, or imports in your application. -## Add a `mdx-components.tsx` file +## Add an `mdx-components.tsx` file -Create a `mdx-components.tsx` (or `.js`) file in the root of your project to define global MDX Components. For example, at the same level as `pages` or `app`, or inside `src` if applicable. +Create an `mdx-components.tsx` (or `.js`) file in the root of your project to define global MDX Components. For example, at the same level as `pages` or `app`, or inside `src` if applicable. ```tsx filename="mdx-components.tsx" switcher import type { MDXComponents } from 'mdx/types' diff --git a/packages/next-mdx/readme.md b/packages/next-mdx/readme.md index a5356686fd..1504440c9a 100644 --- a/packages/next-mdx/readme.md +++ b/packages/next-mdx/readme.md @@ -102,7 +102,7 @@ yarn add @next/mdx ## Usage -Create a `mdx-components.js` file at the root of your project with the following contents: +Create an `mdx-components.js` file at the root of your project with the following contents: ```js // This file is required to use @next/mdx in the `app` directory.