-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request][v7]: Allow rendering custom Markdown just as in v6 #20586
Comments
@JReinhold WDYT? |
Importing plain I would think that you could import import Readme from '../README.md';
<Readme /> What's required to make that work @shilman? If we can't make that work I would agree with @wintercounter that a |
The problem with that would be that not everyone want's to use it as a React component, or they want to to some pre-processing on the string. For example in my case when I'm loading the main Readme.md of the repo, I might want to strip out the licences part. This would also be a breaking change for those who import it as string already. |
So you mean that you import the
The |
I opened this ticket after trying out v7 beta and passing Markdown directly is Description is not working there anymore, I had to recreate my own component to make it work. |
Son of a gun!! I just released https://github.com/storybookjs/storybook/releases/tag/v7.0.0-beta.36 containing PR #20796 that references this issue. Upgrade today to the
|
Is your feature request related to a problem? Please describe
In v7 when I use the
Description
block in a standalone Docs MDX file, it immediately want to have a CRF file. Until now we could useDescription
to render custom markdown in without a stories file, now I cannot do that. We were rendering our Readme.md as our Introduction page.Describe the solution you'd like
A
Markdown
component maybe? I simple re-export of https://github.com/storybookjs/storybook/blob/next/code/ui/blocks/src/components/Description.tsx calledMarkdown
insideblocks
.Describe alternatives you've considered
No response
Are you able to assist to bring the feature to reality?
yes
Additional context
No response
The text was updated successfully, but these errors were encountered: