Skip to content

Commit

Permalink
chore(gatsby-plugin-mdx): Fix grammar (#33485)
Browse files Browse the repository at this point in the history
  • Loading branch information
erikbgithub committed Oct 25, 2021
1 parent b05bd21 commit 9d8413c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/gatsby-plugin-mdx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ module.exports = {
}
```

MDX has the concept of a layout that is different than the Gatsby
concept of a layout. MDX's layouts are written using the default
export JavaScript syntax in a single MDX file. An MDX layout will wrap
the MDX content in an additional component, so this can be a good
place for page layout depending on how you are using MDX.
MDX has a layout concept that is different from Gatsby's. MDX layouts
are written using the default export JavaScript syntax in a single MDX
file. An MDX layout will wrap the MDX content in an additional
component, so this can be a good place for a page layout depending on
how you are using MDX.

```javascript
export default ({ children }) => (
Expand Down Expand Up @@ -229,7 +229,7 @@ some content
Sometimes you don't want to include the layout in every file, so `gatsby-plugin-mdx`
offers the option to set default layouts in the `gatsby-config.js` plugin
config. Set the key to the `name` set in the `gatsby-source-filesystem` config.
If no matching default layout is found, the `default` default layout is used.
If no matching default layout is found, the default layout named `default` is used.

You can also set `options.defaultLayouts.default` if you only want to
use one layout for all MDX pages that don't already have a layout defined.
Expand Down

0 comments on commit 9d8413c

Please sign in to comment.