Failed prop type: Invalid prop remarkPlugins[2]
supplied to ReactMarkdown
#945
-
After upgrading to react-markdown 8.0.0, we get this console error:
When using e.g. this as out
Using
|
Beta Was this translation helpful? Give feedback.
Answered by
ChristianMurphy
Jan 24, 2022
Replies: 1 comment 5 replies
-
This is something that could be improved, currently the prop types expect a function or an object. https://github.com/remarkjs/react-markdown/blob/cd845c9f38e0280b67fa33cc8e1fcf9d2cd0cc72/lib/react-markdown.js#L140-L152 |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
ChristianMurphy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is something that could be improved, currently the prop types expect a function or an object. https://github.com/remarkjs/react-markdown/blob/cd845c9f38e0280b67fa33cc8e1fcf9d2cd0cc72/lib/react-markdown.js#L140-L152
Array of string currently isn't included, but probably could be.
PR(s) are welcome!