Skip to content

Commit

Permalink
chore(docs): Add props to MyParagraph (#27124)
Browse files Browse the repository at this point in the history
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
  • Loading branch information
kai687 and gatsbybot committed Sep 28, 2020
1 parent 587b33a commit a52df81
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/gatsby-plugin-mdx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,9 @@ all of the MDX content.
import { MDXProvider } from "@mdx-js/react"

const MyH1 = props => <h1 style={{ color: "tomato" }} {...props} />
const MyParagraph = props => <p style={{ fontSize: "18px", lineHeight: 1.6 }} />
const MyParagraph = props => (
<p style={{ fontSize: "18px", lineHeight: 1.6 }} {...props} />
)

const components = {
h1: MyH1,
Expand Down

0 comments on commit a52df81

Please sign in to comment.