From bc0936443f7589c38219147231f2cef2b1076db5 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 28 Sep 2023 09:25:33 +0200 Subject: [PATCH] Fix typos --- changelog.md | 2 +- readme.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/changelog.md b/changelog.md index 0f91e90..02e13fe 100644 --- a/changelog.md +++ b/changelog.md @@ -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 diff --git a/readme.md b/readme.md index 11036da..5e4751f 100644 --- a/readme.md +++ b/readme.md @@ -136,9 +136,9 @@ ReactDom.render({markdown}, document.body) -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' @@ -685,7 +685,7 @@ const markdown = ` ` // Pass the value as an expresion as an only child: -{markdown} +const result = {markdown} ``` 👆 That works.