Unverified Commit a1e5d0b0 authored by Mehdi's avatar Mehdi Committed by GitHub

chore: Replaced more impactful words (#63835)

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: 's avatarsamcx <sam@vercel.com>
parent 411846a0
--- ---
title: Markdown and MDX title: Markdown and MDX
nav_title: 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. */} {/* 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. */}
...@@ -210,7 +210,7 @@ Navigating to the `/my-mdx-page-remote` route should display your rendered MDX. ...@@ -210,7 +210,7 @@ Navigating to the `/my-mdx-page-remote` route should display your rendered MDX.
<AppOnly> <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 ```tsx filename="app/my-mdx-page/layout.tsx" switcher
export default function MdxLayout({ children }: { children: React.ReactNode }) { export default function MdxLayout({ children }: { children: React.ReactNode }) {
...@@ -254,7 +254,7 @@ import MdxLayout from '../components/mdx-layout' ...@@ -254,7 +254,7 @@ import MdxLayout from '../components/mdx-layout'
# Welcome to my MDX page! # Welcome to my MDX page!
export default function MDXPage({ children }) { export default function MDXPage({ children }) {
return <MdxLayout>{children}</MdxLayout>; return <MdxLayout>{children}</MdxLayout>
} }
``` ```
...@@ -288,7 +288,7 @@ const withMDX = createMDX({ ...@@ -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) export default withMDX(nextConfig)
``` ```
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment