Skip to content

Commit

Permalink
chore: Replaced more impactful words (vercel#63835)
Browse files Browse the repository at this point in the history
That's it, and about the metadata (description), I had to change it
cause it feels like the new change can be more relatable on the
[MDX](https://nextjs.org/docs/app/building-your-application/configuring/mdx)
page.

---------

Co-authored-by: samcx <[email protected]>
  • Loading branch information
Pyr33x and samcx authored Apr 5, 2024
1 parent 411846a commit a1e5d0b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
title: Markdown and MDX
nav_title: MDX
description: Learn how to configure MDX to write JSX in your markdown files.
description: Learn how to configure MDX and use it in your Next.js apps.
---

{/* The content of this doc is shared between the app and pages router. You can use the `<PagesOnly>Content</PagesOnly>` component to add content that is specific to the Pages Router. Any shared content should not be wrapped in a component. */}
Expand Down Expand Up @@ -210,7 +210,7 @@ Navigating to the `/my-mdx-page-remote` route should display your rendered MDX.

<AppOnly>

To share a layout amongst MDX pages, you can use the [built-in layouts support](/docs/app/building-your-application/routing/pages-and-layouts#layouts) with the App Router.
To share a layout across MDX pages, you can use the [built-in layouts support](/docs/app/building-your-application/routing/pages-and-layouts#layouts) with the App Router.

```tsx filename="app/my-mdx-page/layout.tsx" switcher
export default function MdxLayout({ children }: { children: React.ReactNode }) {
Expand Down Expand Up @@ -254,7 +254,7 @@ import MdxLayout from '../components/mdx-layout'
# Welcome to my MDX page!

export default function MDXPage({ children }) {
return <MdxLayout>{children}</MdxLayout>;
return <MdxLayout>{children}</MdxLayout>

}
```
Expand Down Expand Up @@ -288,7 +288,7 @@ const withMDX = createMDX({
},
})

// Merge MDX config with Next.js config
// Wrap MDX and Next.js config with each other
export default withMDX(nextConfig)
```

Expand Down

0 comments on commit a1e5d0b

Please sign in to comment.