-
Notifications
You must be signed in to change notification settings - Fork 935
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
autodocs should keep indentation in @example #2512
Comments
@KutnerUri , isn't an issue in bit.dev? I just created a component with the example below and ran |
I'm still getting it without spaces, and 95% sure it's happening in the CLI. Now it is happening in this component: |
@davidfirst I've imported the component @KutnerUri mentioned (https://bit.dev/bit/evangelist/marketing/comment-carousel)
it might be during the export / import? |
I found the issue. |
See: https://bit.dev/kutner/temp/atom/eva-icon-font?version=1.0.0
When exporting a component, the
@example
loses its indentation.Example in jsdocs:
Example from API
(https://api.bit.dev/component/kutner/temp/atom/eva-icon-font?version=1.0.0)
I expect the API example to keep the same linebreaks and indentation as the source code.
In addition, we need to specify language
@example
.A couple of times I wanted to show scss usage, but I always got .tsx highlight.
Specifications
The text was updated successfully, but these errors were encountered: