Skip to content
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

Feat request: <!-- SOURCE --> #187

Open
deini opened this issue Jul 3, 2019 · 1 comment · Fixed by #188
Open

Feat request: <!-- SOURCE --> #187

deini opened this issue Jul 3, 2019 · 1 comment · Fixed by #188

Comments

@deini
Copy link
Contributor

deini commented Jul 3, 2019

Feat request

Followup of: #113

What do you guys think about a <!-- SOURCE --> placeholder that would add the story source to the markdown as a code snippet?

@tuchk4 tuchk4 reopened this Aug 2, 2019
@tuchk4
Copy link
Owner

tuchk4 commented Aug 2, 2019

released at storybook-readme@5.0.7-alpha.0+5c71e7a

I will update snapshots laters

@deini Would be nice if you have time to add a property to auto-format source code.

And another feature request -- wrap story source with the collpasable box. (just to make it looks different from code blocks) Like this:

Story source
  function whatIsLove() {
    console.log('Baby Don't hurt me. Don't hurt me');
    return 'No more';
  }

What do you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants