From 49f9c46fb13cce03e37b9eccfdba1e12b9e2650e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manu=20L=C3=B3pez?= Date: Thu, 4 Jul 2024 07:50:26 -0300 Subject: [PATCH] Fix typo in MDX documentation (#67432) I was reading the documentation related to MDX and noticed a typo in some articles, so I fixed them. Although I read the [Contribution Guidelines](https://github.com/vercel/next.js/blob/canary/contributing.md) this is my first contribution so feel free to comment if I can do better. Co-authored-by: Jiwon Choi --- .../01-building-your-application/07-configuring/05-mdx.mdx | 4 ++-- packages/next-mdx/readme.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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.