Feature request: support more languages/flexibility for code blocks.
#200 opened on Jul 22, 2019
Description
Hi,
First of all, I'd like to say thanks and great work on this project, I've found it very useful. But I've run into an issue where it'd be nice if more languages were supported for code blocks. I found that if I specify a .md code block with scss then the syntax is not recognized and styled correctly.
Issue/Background:
Specifically the reason why I'm raising this issue is that I am writing scss and have stylelint for my project so it recognizes the scss within the .md files, but the outputted code block is unstyled when presented in the storybook-readme panel which makes it less readable.
So at this point I end up with either a very difficult to read code block in the addon, or if I specify my code blocks as css, the code block is instead incorrectly styled for comments and stylelint complains about my single line comments which are valid in scss but not valid with plain css.
Suggestion:
It would be nice to be able to extend the styles with a local css/scss/js file, alternatively add support for more languages by default in the prismCodeTheme style files for example for jsx, scss.