Skip to content

Commit a52df81

Browse files
kai687gatsbybot
and
gatsbybot
authored
chore(docs): Add props to MyParagraph (#27124)
Co-authored-by: gatsbybot <mathews.kyle+gatsbybot@gmail.com>
1 parent 587b33a commit a52df81

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/gatsby-plugin-mdx/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,9 @@ all of the MDX content.
475475
import { MDXProvider } from "@mdx-js/react"
476476

477477
const MyH1 = props => <h1 style={{ color: "tomato" }} {...props} />
478-
const MyParagraph = props => <p style={{ fontSize: "18px", lineHeight: 1.6 }} />
478+
const MyParagraph = props => (
479+
<p style={{ fontSize: "18px", lineHeight: 1.6 }} {...props} />
480+
)
479481

480482
const components = {
481483
h1: MyH1,

0 commit comments

Comments
 (0)