Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Sep 28, 2023
1 parent 1d5cbf5 commit bc09364
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ function rehypePluginAddingIndex() {

When overwriting components, these props are no longer passed:

* `inline` on `code`:
* `inline` on `code`
— create a plugin or use `pre` for the block
* `level` on `h1`, `h2`, `h3`, `h4`, `h5`, `h6`
— check `node.tagName` instead
Expand Down
8 changes: 4 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,9 @@ ReactDom.render(<Markdown>{markdown}</Markdown>, document.body)

</details>

Here is an example that shows passing the markdown as a string and how
to use a plugin ([`remark-gfm`][remark-gfm], which adds support for
footnotes, strikethrough, tables, tasklists and URLs directly):
Here is an example that shows how to use a plugin ([`remark-gfm`][remark-gfm],
which adds support for footnotes, strikethrough, tables, tasklists and URLs
directly):

```jsx
import React from 'react'
Expand Down Expand Up @@ -685,7 +685,7 @@ const markdown = `
`
// Pass the value as an expresion as an only child:
<Markdown>{markdown}</Markdown>
const result = <Markdown>{markdown}</Markdown>
```

👆 That works.
Expand Down

0 comments on commit bc09364

Please sign in to comment.