From 0314a31086aecc50d1d4f9ef365a249aca39d4fc Mon Sep 17 00:00:00 2001 From: Kai Welke Date: Sun, 27 Sep 2020 13:44:15 +0200 Subject: [PATCH 1/2] Add props to MyParagraph in README In the section for `MDXProvider`, the `{..props}` was there for the `MyH1` component, but not for the `MyParagraph` component, which would leave the paragraph empty. --- packages/gatsby-plugin-mdx/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/gatsby-plugin-mdx/README.md b/packages/gatsby-plugin-mdx/README.md index ebbfc639f70c3..b091466444eb9 100644 --- a/packages/gatsby-plugin-mdx/README.md +++ b/packages/gatsby-plugin-mdx/README.md @@ -475,7 +475,7 @@ all of the MDX content. import { MDXProvider } from "@mdx-js/react" const MyH1 = props =>

-const MyParagraph = props =>

+const MyParagraph = props =>

const components = { h1: MyH1, From 252da5ff26e4c224a74bc814b37dbcf9d9605df1 Mon Sep 17 00:00:00 2001 From: gatsbybot Date: Mon, 28 Sep 2020 07:43:00 +0000 Subject: [PATCH 2/2] chore: format --- packages/gatsby-plugin-mdx/README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/gatsby-plugin-mdx/README.md b/packages/gatsby-plugin-mdx/README.md index b091466444eb9..6ce33a3259f96 100644 --- a/packages/gatsby-plugin-mdx/README.md +++ b/packages/gatsby-plugin-mdx/README.md @@ -475,7 +475,9 @@ all of the MDX content. import { MDXProvider } from "@mdx-js/react" const MyH1 = props =>

-const MyParagraph = props =>

+const MyParagraph = props => ( +

+) const components = { h1: MyH1,