You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a block of CSS (ie: my reset) that I would like to display in the styleguide. Is there a way to accomplish this without rewriting the CSS in a comment?
In the following example, I'd like to output both the comment and the actual CSS to a Kalei styleguide block.
/*
### Reset body line-height to unitless 1.
*/
body {
line-height: 1;
}
Perhaps there could be a rule where, if a code block is followed immediately by */, it outputs everything until the next code block mark preceeded by /*.
/*
### Reset body line-height to unitless 1.
```*/
body {
line-height: 1;
}
/*```
*/
To say it differently: Print everything between
```*/
and
/*```
as a block of CSS in the styleguide.
Just one approach - but this feature would be great to have!
The text was updated successfully, but these errors were encountered:
I have a block of CSS (ie: my reset) that I would like to display in the styleguide. Is there a way to accomplish this without rewriting the CSS in a comment?
In the following example, I'd like to output both the comment and the actual CSS to a Kalei styleguide block.
Perhaps there could be a rule where, if a code block is followed immediately by
*/
, it outputs everything until the next code block mark preceeded by/*
.To say it differently: Print everything between
and
as a block of CSS in the styleguide.
Just one approach - but this feature would be great to have!
The text was updated successfully, but these errors were encountered: