rsnext/docs
3λiȯ+ 9d86c1224c
docs: Correct place for passing extension option to createMDX() (#55967)
### What?

Fixing a little mistake in the documentation, where the placement of the `extension` option for `createMDX()` was described as being inside the `options` property:

```ts
const withMDX = createMDX({
  options: {
    extension: /\.mdx?$/,
```

But it's actually a property of its own:


```ts
const withMDX = createMDX({
  extension: /\.mdx?$/,
```

I confirmed that the latter is correct because:

- It solves an issue I was having: Unable to import `.md` files
- On the same docs page, there's another place where it mentions this `extension` option and the code example is correct there
- The option is described in a similar issue, such as https://github.com/vercel/next.js/issues/45431#issuecomment-1410363864
2023-09-25 17:38:01 +00:00
..
01-getting-started docs: fix typo (#54973) 2023-09-06 07:16:19 +00:00
02-app docs: Correct place for passing extension option to createMDX() (#55967) 2023-09-25 17:38:01 +00:00
03-pages Update 10-testing.mdx (#55801) 2023-09-23 01:11:46 +00:00
04-architecture add tip for case sensitivity of imports (#55662) 2023-09-20 21:12:40 +00:00
05-community docs: Update Vercel YouTube channel url (#54912) 2023-09-03 00:10:00 +00:00
index.mdx docs: Rewrite Rendering Section and React Essentials Page (#51579) 2023-08-24 08:48:44 -05:00