chakra-ui-markdown-renderer
chakra-ui-markdown-renderer copied to clipboard
Breaking change in react-markdown v9
Using this plugin with react-markdown
>= 9.0.0
breaks rendering of headings. Instead of the correct heading level being created, <hundefined>
is returned, regardless of the markdown heading level. From a quick look at the source code, I'd guess the required level is not included in the props object anymore: https://github.com/mustaphaturhan/chakra-ui-markdown-renderer/blob/b480cedd6fa74b87fc497b5b5a17ac304a6ef7dd/src/index.tsx#L154.
I don't have time to submit a PR right now, and I doubt it would be accepted in the first place, but a workaround is pinning the version of react-markdown
to 8.0.7
.