How do I include codeblocks in Storybook v8 MDX files? #29596
Unanswered
IPWright83
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
I've tried to update Storybook from v7 to v8 and now all of my MDX files are broken triggering an error like so:
I've isolated the problem to having any sort of code block in my MDX files. If I strip it back to just H1 tags etc it works. How would I go about fixing this/including codeblocks?
Additional information
Here's an example MDX file demonstrating the issue:
You can see the repo I'm having this problem in here:
https://github.com/IPWright83/chart-io/tree/update-storybook/packages/react
Specifically in the Area.mdx file
Create a reproduction
https://github.com/IPWright83/chart-io/tree/update-storybook/packages/react
Beta Was this translation helpful? Give feedback.
All reactions