chakra-ui-markdown-renderer icon indicating copy to clipboard operation
chakra-ui-markdown-renderer copied to clipboard

Breaking change in react-markdown v9

Open noassl opened this issue 8 months ago • 0 comments

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.

noassl avatar Jun 16 '24 18:06 noassl