remarkjs/react-markdown
### [`v8.0.3`](https://togithub.com/remarkjs/react-markdown/releases/tag/8.0.3)
[Compare Source](https://togithub.com/remarkjs/react-markdown/compare/8.0.2...8.0.3)
- [`a2fb833`](https://togithub.com/remarkjs/react-markdown/commit/a2fb833) Fix prop types of plugins
by [@starpit](https://togithub.com/starpit) in [https://github.com/remarkjs/react-markdown/pull/683](https://togithub.com/remarkjs/react-markdown/pull/683)
**Full Changelog**: https://github.com/remarkjs/react-markdown/compare/8.0.2...8.0.3
### [`v8.0.2`](https://togithub.com/remarkjs/react-markdown/releases/tag/8.0.2)
[Compare Source](https://togithub.com/remarkjs/react-markdown/compare/8.0.1...8.0.2)
- [`2712227`](https://togithub.com/remarkjs/react-markdown/commit/2712227) Update `react-is`
- [`704c3c6`](https://togithub.com/remarkjs/react-markdown/commit/704c3c6) Fix TypeScript bug by adding workaround
by [@Methuselah96](https://togithub.com/Methuselah96) in [https://github.com/remarkjs/react-markdown/pull/676](https://togithub.com/remarkjs/react-markdown/pull/676)
**Full Changelog**: https://github.com/remarkjs/react-markdown/compare/8.0.1...8.0.2
### [`v8.0.1`](https://togithub.com/remarkjs/react-markdown/releases/tag/8.0.1)
[Compare Source](https://togithub.com/remarkjs/react-markdown/compare/8.0.0...8.0.1)
- [`c23ecf6`](https://togithub.com/remarkjs/react-markdown/commit/c23ecf6) Add missing dependency for types
by [@Methuselah96](https://togithub.com/Methuselah96) in [https://github.com/remarkjs/react-markdown/pull/675](https://togithub.com/remarkjs/react-markdown/pull/675)
**Full Changelog**: https://github.com/remarkjs/react-markdown/compare/8.0.0...8.0.1
### [`v8.0.0`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#800---2022-01-17)
[Compare Source](https://togithub.com/remarkjs/react-markdown/compare/7.1.2...8.0.0)
- [`cd845c9`](https://togithub.com/remarkjs/react-markdown/commit/cd845c9)
Remove deprecated `plugins` option\
(**migrate by renaming it to `remarkPlugins`**)
- [`36e4916`](https://togithub.com/remarkjs/react-markdown/commit/36e4916)
Update [`remark-rehype`](https://togithub.com/remarkjs/remark-rehype),
add support for passing it options\
by [**@peolic**](https://togithub.com/peolic)
in [#669](https://togithub.com/remarkjs/react-markdown/pull/669)\
(**migrate by removing `remark-footnotes` and updating `remark-gfm` if you
were using them, otherwise you shouldn’t notice this**)
### [`v7.1.2`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#712---2022-01-02)
[Compare Source](https://togithub.com/remarkjs/react-markdown/compare/7.1.1...7.1.2)
- [`656a4fa`](https://togithub.com/remarkjs/react-markdown/commit/656a4fa)
Fix `ref` in types\
by [**@ChristianMurphy**](https://togithub.com/ChristianMurphy)
in [#668](https://togithub.com/remarkjs/react-markdown/pull/668)
### [`v7.1.1`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#711---2021-11-29)
[Compare Source](https://togithub.com/remarkjs/react-markdown/compare/7.1.0...7.1.1)
- [`4185f06`](https://togithub.com/remarkjs/react-markdown/commit/4185f06)
Add improved docs\
by [**@wooorm**](https://togithub.com/wooorm)
in [#657](https://togithub.com/remarkjs/react-markdown/pull/657)
### [`v7.1.0`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#710---2021-10-21)
[Compare Source](https://togithub.com/remarkjs/react-markdown/compare/7.0.1...7.1.0)
- [`7b8a829`](https://togithub.com/remarkjs/react-markdown/commit/7b8a829)
Add support for `SpecialComponents` to be any `ComponentType`\
by [**@Methuselah96**](https://togithub.com/Methuselah96)
in [#640](https://togithub.com/remarkjs/react-markdown/pull/640)
- [`a7c26fc`](https://togithub.com/remarkjs/react-markdown/commit/a7c26fc)
Remove warning on whitespace in tables
### [`v7.0.1`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#701---2021-08-26)
[Compare Source](https://togithub.com/remarkjs/react-markdown/compare/7.0.0...7.0.1)
- [`ec387c2`](https://togithub.com/remarkjs/react-markdown/commit/ec387c2)
Add improved type for `linkTarget` as string
- [`5af6bc7`](https://togithub.com/remarkjs/react-markdown/commit/5af6bc7)
Fix to correctly compile intrinsic types
### [`v7.0.0`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#700---2021-08-13)
[Compare Source](https://togithub.com/remarkjs/react-markdown/compare/6.0.3...7.0.0)
Welcome to version 7.
This a major release and therefore contains breaking changes.
##### Breaking changes
- [`01b11fe`](https://togithub.com/remarkjs/react-markdown/commit/01b11fe)
[`c613efd`](https://togithub.com/remarkjs/react-markdown/commit/c613efd)
[`a1e1c3f`](https://togithub.com/remarkjs/react-markdown/commit/a1e1c3f)
[`aeee9ac`](https://togithub.com/remarkjs/react-markdown/commit/aeee9ac)
Use ESM
(please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c))
- [`3dffd6a`](https://togithub.com/remarkjs/react-markdown/commit/3dffd6a)
Update dependencies
(upgrade all your plugins and this should go fine)
##### Internals
- [`8b5481c`](https://togithub.com/remarkjs/react-markdown/commit/8b5481c)
[`fb1b512`](https://togithub.com/remarkjs/react-markdown/commit/fb1b512)
[`144af79`](https://togithub.com/remarkjs/react-markdown/commit/144af79)
Replace `jest` with `uvu`
- [`8c572df`](https://togithub.com/remarkjs/react-markdown/commit/8c572df)
Replace `rollup` with `esbuild`
- [`8737eac`](https://togithub.com/remarkjs/react-markdown/commit/8737eac)
[`28d4c75`](https://togithub.com/remarkjs/react-markdown/commit/28d4c75)
[`b2dd046`](https://togithub.com/remarkjs/react-markdown/commit/b2dd046)
Refactor code-style
### [`v6.0.3`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#603---2021-07-30)
[Compare Source](https://togithub.com/remarkjs/react-markdown/compare/6.0.2...6.0.3)
- [`13367ed`](https://togithub.com/remarkjs/react-markdown/commit/13367ed)
Fix types to include each element w/ its properties
- [`0a1931a`](https://togithub.com/remarkjs/react-markdown/commit/0a1931a)
Fix to add min version of `property-information`
### [`v6.0.2`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#602---2021-05-06)
[Compare Source](https://togithub.com/remarkjs/react-markdown/compare/6.0.1...6.0.2)
- [`cefc02d`](https://togithub.com/remarkjs/react-markdown/commit/cefc02d)
Add string type for `className`s
- [`6355e45`](https://togithub.com/remarkjs/react-markdown/commit/6355e45)
Fix to pass `vfile` to plugins
- [`5cf6e1b`](https://togithub.com/remarkjs/react-markdown/commit/5cf6e1b)
Fix to add warning when non-strings are given as `children`
### [`v6.0.1`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#601---2021-04-23)
[Compare Source](https://togithub.com/remarkjs/react-markdown/compare/6.0.0...6.0.1)
- [`2e956be`](https://togithub.com/remarkjs/react-markdown/commit/2e956be)
Fix whitespace in table elements
- [`d36048a`](https://togithub.com/remarkjs/react-markdown/commit/d36048a)
Add architecture section to readme
### [`v6.0.0`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#600---2021-04-15)
[Compare Source](https://togithub.com/remarkjs/react-markdown/compare/5.0.3...6.0.0)
Welcome to version 6.
This a major release and therefore contains breaking changes.
##### Change `renderers` to `components`
`react-markdown` used to let you define components for *markdown* constructs
(`link`, `delete`, `break`, etc).
This proved complex as users didn’t know about those names or markdown
peculiarities (such as that there are fully formed links *and* link references).
See [**GH-549**](https://togithub.com/remarkjs/react-markdown/issues/549) for more
on why this changed.
See [**Appendix B: Components** in
`readme.md`](https://togithub.com/remarkjs/react-markdown#appendix-b-components)
for more on components.
Show example of needed change
Before (**broken**):
```jsx
}}
>{`***`}
```
Now (**fixed**):
```jsx
}}
>{`***`}
```
Show conversion table
| Type (`renderers`) | Tag names (`components`) |
| - | - |
| `blockquote` | `blockquote` |
| `break` | `br` |
| `code`, `inlineCode` | `code`, `pre`**\*** |
| `definition` | **†** |
| `delete` | `del`**‡** |
| `emphasis` | `em` |
| `heading` | `h1`, `h2`, `h3`, `h4`, `h5`, `h6`**§** |
| `html`, `parsedHtml`, `virtualHtml` | **‖** |
| `image`, `imageReference` | `img`**†** |
| `link`, `linkReference` | `a`**†** |
| `list` | `ol`, `ul`**¶** |
| `listItem` | `li` |
| `paragraph` | `p` |
| `root` | **\*\*** |
| `strong` | `strong` |
| `table` | `table`**‡** |
| `tableHead` | `thead`**‡** |
| `tableBody` | `tbody`**‡** |
| `tableRow` | `tr`**‡** |
| `tableCell` | `td`, `th`**‡** |
| `text` | |
| `thematicBreak` | `hr` |
- **\*** It’s possible to differentiate between code based on the `inline`
prop.
Block code is also wrapped in a `pre`
- **†** Resource (`[text](url)`) and reference (`[text][id]`) style links and
images (and their definitions) are now resolved and treated the same
- **‡** Available when using
[`remark-gfm`](https://togithub.com/remarkjs/remark-gfm)
- **§** It’s possible to differentiate between heading based on the `level`
prop
- **‖** When using `rehype-raw` (see below), components for those elements
can also be used (for example, `abbr` for
`HTML`)
- **¶** It’s possible to differentiate between lists based on the `ordered`
prop
- **\*\*** Wrap `ReactMarkdown` in a component instead
##### Add `rehypePlugins`
We’ve added another plugin system:
[**rehype**](https://togithub.com/rehypejs/rehype).
It’s similar to remark (what we’re using for markdown) but for HTML.
There are many rehype plugins.
Some examples are
[`@mapbox/rehype-prism`](https://togithub.com/mapbox/rehype-prism)
(syntax highlighting with Prism),
[`rehype-katex`](https://togithub.com/remarkjs/remark-math/tree/HEAD/packages/rehype-katex)
(rendering math with KaTeX), or
[`rehype-autolink-headings`](https://togithub.com/rehypejs/rehype-autolink-headings)
(adding links to headings).
See [List of plugins](https://togithub.com/rehypejs/rehype/blob/main/doc/plugins.md)
for more plugins.
Show example of feature
```jsx
import rehypeHighlight from 'rehype-highlight'
{`~~~js
console.log(1)
~~~`}
```
##### Remove buggy HTML in markdown parser
In a lot of cases, you should not use HTML in markdown: it’s most always unsafe.
And it defeats much of the purpose of this project (not relying on
`dangerouslySetInnerHTML`).
`react-markdown` used to have an opt-in HTML parser with a bunch of bugs.
As we now support rehype plugins, we can defer that work to a rehype plugin.
To support HTML in markdown with `react-markdown`, use
[`rehype-raw`](https://togithub.com/rehypejs/rehype-raw).
The `astPlugins` and `allowDangerousHtml` (previously called `escapeHtml`) props
are no longer needed and were removed.
When using `rehype-raw`, you should probably use
[`rehype-sanitize`](https://togithub.com/rehypejs/rehype-sanitize)
too.
Show example of needed change
Before (**broken**):
```jsx
import MarkdownWithHtml from 'react-markdown/with-html'
{`# Hello, world!`}
```
Now (**fixed**):
```jsx
import Markdown from 'react-markdown'
import rehypeRaw from 'rehype-raw'
import rehypeSanitize from 'rehype-sanitize'
{`# Hello, world!`}
```
##### Change `source` to `children`
Instead of passing a `source` pass `children` instead:
Show example of needed change
Before (**broken**):
```jsx
```
Now (**fixed**):
```jsx
{`some
markdown`}
```
Or (**also fixed**):
```jsx
```
##### Replace `allowNode`, `allowedTypes`, and `disallowedTypes`
Similar to the `renderers` to `components` change, the filtering options
also changed from being based on markdown names towards being based on HTML
names: `allowNode` to `allowElement`, `allowedTypes` to `allowedElements`, and
`disallowedTypes` to `disallowedElements`.
Show example of needed change
Before (**broken**):
```jsx
{`![alt text](./image.url)`}
```
Now (**fixed**):
```jsx
{`![alt text](./image.url)`}
```
***
Before (**broken**):
```jsx
node.type !== 'heading' || node.depth !== 1}
>{`# main heading`}
```
Now (**fixed**):
```jsx
element.tagName !== 'h1'}
>{`# main heading`}
```
##### Change `includeNodeIndex` to `includeElementIndex`
Similar to the `renderers` to `components` change, this option to pass more info
to components also changed from being based on markdown to being based on HTML.
Show example of needed change
Before (**broken**):
```jsx
}}
>{`Some text`}
```
Now (**fixed**):
```jsx
}}
>{`Some text`}
```
##### Change signature of `transformLinkUri`, `linkTarget`
The second parameter of these functions (to rewrite `href` on `a` or to define
`target` on `a`) are now [hast](https://togithub.com/syntax-tree/hast) (HTML AST)
instead of [mdast](https://togithub.com/syntax-tree/mdast) (markdown AST).
##### Change signature of `transformImageUri`
The second parameter of this function was always `undefined` and the fourth was
the `alt` (`string`) on the image.
The second parameter is now that `alt`.
##### Remove support for React 15, IE11
We now use ES2015 (such as `Object.assign`) and removed certain hacks to work
with React 15 and older.
Configuration
📅 Schedule: Branch creation - "before 2am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate using a preset from . View repository job log here
This PR contains the following updates:
^5.0.3
->^8.0.3
Release Notes
remarkjs/react-markdown
### [`v8.0.3`](https://togithub.com/remarkjs/react-markdown/releases/tag/8.0.3) [Compare Source](https://togithub.com/remarkjs/react-markdown/compare/8.0.2...8.0.3) - [`a2fb833`](https://togithub.com/remarkjs/react-markdown/commit/a2fb833) Fix prop types of plugins by [@starpit](https://togithub.com/starpit) in [https://github.com/remarkjs/react-markdown/pull/683](https://togithub.com/remarkjs/react-markdown/pull/683) **Full Changelog**: https://github.com/remarkjs/react-markdown/compare/8.0.2...8.0.3 ### [`v8.0.2`](https://togithub.com/remarkjs/react-markdown/releases/tag/8.0.2) [Compare Source](https://togithub.com/remarkjs/react-markdown/compare/8.0.1...8.0.2) - [`2712227`](https://togithub.com/remarkjs/react-markdown/commit/2712227) Update `react-is` - [`704c3c6`](https://togithub.com/remarkjs/react-markdown/commit/704c3c6) Fix TypeScript bug by adding workaround by [@Methuselah96](https://togithub.com/Methuselah96) in [https://github.com/remarkjs/react-markdown/pull/676](https://togithub.com/remarkjs/react-markdown/pull/676) **Full Changelog**: https://github.com/remarkjs/react-markdown/compare/8.0.1...8.0.2 ### [`v8.0.1`](https://togithub.com/remarkjs/react-markdown/releases/tag/8.0.1) [Compare Source](https://togithub.com/remarkjs/react-markdown/compare/8.0.0...8.0.1) - [`c23ecf6`](https://togithub.com/remarkjs/react-markdown/commit/c23ecf6) Add missing dependency for types by [@Methuselah96](https://togithub.com/Methuselah96) in [https://github.com/remarkjs/react-markdown/pull/675](https://togithub.com/remarkjs/react-markdown/pull/675) **Full Changelog**: https://github.com/remarkjs/react-markdown/compare/8.0.0...8.0.1 ### [`v8.0.0`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#800---2022-01-17) [Compare Source](https://togithub.com/remarkjs/react-markdown/compare/7.1.2...8.0.0) - [`cd845c9`](https://togithub.com/remarkjs/react-markdown/commit/cd845c9) Remove deprecated `plugins` option\ (**migrate by renaming it to `remarkPlugins`**) - [`36e4916`](https://togithub.com/remarkjs/react-markdown/commit/36e4916) Update [`remark-rehype`](https://togithub.com/remarkjs/remark-rehype), add support for passing it options\ by [**@peolic**](https://togithub.com/peolic) in [#669](https://togithub.com/remarkjs/react-markdown/pull/669)\ (**migrate by removing `remark-footnotes` and updating `remark-gfm` if you were using them, otherwise you shouldn’t notice this**) ### [`v7.1.2`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#712---2022-01-02) [Compare Source](https://togithub.com/remarkjs/react-markdown/compare/7.1.1...7.1.2) - [`656a4fa`](https://togithub.com/remarkjs/react-markdown/commit/656a4fa) Fix `ref` in types\ by [**@ChristianMurphy**](https://togithub.com/ChristianMurphy) in [#668](https://togithub.com/remarkjs/react-markdown/pull/668) ### [`v7.1.1`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#711---2021-11-29) [Compare Source](https://togithub.com/remarkjs/react-markdown/compare/7.1.0...7.1.1) - [`4185f06`](https://togithub.com/remarkjs/react-markdown/commit/4185f06) Add improved docs\ by [**@wooorm**](https://togithub.com/wooorm) in [#657](https://togithub.com/remarkjs/react-markdown/pull/657) ### [`v7.1.0`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#710---2021-10-21) [Compare Source](https://togithub.com/remarkjs/react-markdown/compare/7.0.1...7.1.0) - [`7b8a829`](https://togithub.com/remarkjs/react-markdown/commit/7b8a829) Add support for `SpecialComponents` to be any `ComponentType`\ by [**@Methuselah96**](https://togithub.com/Methuselah96) in [#640](https://togithub.com/remarkjs/react-markdown/pull/640) - [`a7c26fc`](https://togithub.com/remarkjs/react-markdown/commit/a7c26fc) Remove warning on whitespace in tables ### [`v7.0.1`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#701---2021-08-26) [Compare Source](https://togithub.com/remarkjs/react-markdown/compare/7.0.0...7.0.1) - [`ec387c2`](https://togithub.com/remarkjs/react-markdown/commit/ec387c2) Add improved type for `linkTarget` as string - [`5af6bc7`](https://togithub.com/remarkjs/react-markdown/commit/5af6bc7) Fix to correctly compile intrinsic types ### [`v7.0.0`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#700---2021-08-13) [Compare Source](https://togithub.com/remarkjs/react-markdown/compare/6.0.3...7.0.0) Welcome to version 7. This a major release and therefore contains breaking changes. ##### Breaking changes - [`01b11fe`](https://togithub.com/remarkjs/react-markdown/commit/01b11fe) [`c613efd`](https://togithub.com/remarkjs/react-markdown/commit/c613efd) [`a1e1c3f`](https://togithub.com/remarkjs/react-markdown/commit/a1e1c3f) [`aeee9ac`](https://togithub.com/remarkjs/react-markdown/commit/aeee9ac) Use ESM (please [read this](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c)) - [`3dffd6a`](https://togithub.com/remarkjs/react-markdown/commit/3dffd6a) Update dependencies (upgrade all your plugins and this should go fine) ##### Internals - [`8b5481c`](https://togithub.com/remarkjs/react-markdown/commit/8b5481c) [`fb1b512`](https://togithub.com/remarkjs/react-markdown/commit/fb1b512) [`144af79`](https://togithub.com/remarkjs/react-markdown/commit/144af79) Replace `jest` with `uvu` - [`8c572df`](https://togithub.com/remarkjs/react-markdown/commit/8c572df) Replace `rollup` with `esbuild` - [`8737eac`](https://togithub.com/remarkjs/react-markdown/commit/8737eac) [`28d4c75`](https://togithub.com/remarkjs/react-markdown/commit/28d4c75) [`b2dd046`](https://togithub.com/remarkjs/react-markdown/commit/b2dd046) Refactor code-style ### [`v6.0.3`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#603---2021-07-30) [Compare Source](https://togithub.com/remarkjs/react-markdown/compare/6.0.2...6.0.3) - [`13367ed`](https://togithub.com/remarkjs/react-markdown/commit/13367ed) Fix types to include each element w/ its properties - [`0a1931a`](https://togithub.com/remarkjs/react-markdown/commit/0a1931a) Fix to add min version of `property-information` ### [`v6.0.2`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#602---2021-05-06) [Compare Source](https://togithub.com/remarkjs/react-markdown/compare/6.0.1...6.0.2) - [`cefc02d`](https://togithub.com/remarkjs/react-markdown/commit/cefc02d) Add string type for `className`s - [`6355e45`](https://togithub.com/remarkjs/react-markdown/commit/6355e45) Fix to pass `vfile` to plugins - [`5cf6e1b`](https://togithub.com/remarkjs/react-markdown/commit/5cf6e1b) Fix to add warning when non-strings are given as `children` ### [`v6.0.1`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#601---2021-04-23) [Compare Source](https://togithub.com/remarkjs/react-markdown/compare/6.0.0...6.0.1) - [`2e956be`](https://togithub.com/remarkjs/react-markdown/commit/2e956be) Fix whitespace in table elements - [`d36048a`](https://togithub.com/remarkjs/react-markdown/commit/d36048a) Add architecture section to readme ### [`v6.0.0`](https://togithub.com/remarkjs/react-markdown/blob/HEAD/changelog.md#600---2021-04-15) [Compare Source](https://togithub.com/remarkjs/react-markdown/compare/5.0.3...6.0.0) Welcome to version 6. This a major release and therefore contains breaking changes. ##### Change `renderers` to `components` `react-markdown` used to let you define components for *markdown* constructs (`link`, `delete`, `break`, etc). This proved complex as users didn’t know about those names or markdown peculiarities (such as that there are fully formed links *and* link references). See [**GH-549**](https://togithub.com/remarkjs/react-markdown/issues/549) for more on why this changed. See [**Appendix B: Components** in `readme.md`](https://togithub.com/remarkjs/react-markdown#appendix-b-components) for more on components.Show example of needed change
Before (**broken**): ```jsxShow conversion table
| Type (`renderers`) | Tag names (`components`) | | - | - | | `blockquote` | `blockquote` | | `break` | `br` | | `code`, `inlineCode` | `code`, `pre`**\*** | | `definition` | **†** | | `delete` | `del`**‡** | | `emphasis` | `em` | | `heading` | `h1`, `h2`, `h3`, `h4`, `h5`, `h6`**§** | | `html`, `parsedHtml`, `virtualHtml` | **‖** | | `image`, `imageReference` | `img`**†** | | `link`, `linkReference` | `a`**†** | | `list` | `ol`, `ul`**¶** | | `listItem` | `li` | | `paragraph` | `p` | | `root` | **\*\*** | | `strong` | `strong` | | `table` | `table`**‡** | | `tableHead` | `thead`**‡** | | `tableBody` | `tbody`**‡** | | `tableRow` | `tr`**‡** | | `tableCell` | `td`, `th`**‡** | | `text` | | | `thematicBreak` | `hr` | - **\*** It’s possible to differentiate between code based on the `inline` prop. Block code is also wrapped in a `pre` - **†** Resource (`[text](url)`) and reference (`[text][id]`) style links and images (and their definitions) are now resolved and treated the same - **‡** Available when using [`remark-gfm`](https://togithub.com/remarkjs/remark-gfm) - **§** It’s possible to differentiate between heading based on the `level` prop - **‖** When using `rehype-raw` (see below), components for those elements can also be used (for example, `abbr` for `HTML`) - **¶** It’s possible to differentiate between lists based on the `ordered` prop - **\*\*** Wrap `ReactMarkdown` in a component insteadShow example of feature
```jsx import rehypeHighlight from 'rehype-highlight'Show example of needed change
Before (**broken**): ```jsx import MarkdownWithHtml from 'react-markdown/with-html'Show example of needed change
Before (**broken**): ```jsxShow example of needed change
Before (**broken**): ```jsxShow example of needed change
Before (**broken**): ```jsxConfiguration
📅 Schedule: Branch creation - "before 2am" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate using a preset from . View repository job log here