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 <devjiwonchoi@gmail.com>
This commit is contained in:
parent
4bf3bb9dcd
commit
49f9c46fb1
2 changed files with 3 additions and 3 deletions
|
@ -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'
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue