Plugin example syntax different in react-markdown GitHub readme and react-markdown node_module readme #736
-
This example is given on the react-markdown Github page:
However, the node module read.md file uses this syntax:
The second example is the one that worked for me. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
The documentation in the current readme is for react-markdown version 6, which uses |
Beta Was this translation helpful? Give feedback.
-
Thanks!
…On Thu, Jun 3, 2021 at 2:08 PM Christian Murphy ***@***.***> wrote:
The documentation in the current readme is for react-markdown version 6,
which uses remarkPlugins and rehypePlugins.
The second example you are showing appears to be react-markdown version 5,
which uses plugins.
These changes are noted in the changelog
https://github.com/remarkjs/react-markdown/blob/main/changelog.md#600---2021-04-15
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#736 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANOUQAEURF2DV552QXCWIOLTQ7OMRANCNFSM46BNIIBA>
.
|
Beta Was this translation helpful? Give feedback.
The documentation in the current readme is for react-markdown version 6, which uses
remarkPlugins
andrehypePlugins
.The second example you are showing appears to be react-markdown version 5, which uses
plugins
.These changes are noted in the changelog https://github.com/remarkjs/react-markdown/blob/main/changelog.md#600---2021-04-15