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

Code block styles no longer syntax highlighted #218

Open
benkeen opened this issue Oct 18, 2019 · 0 comments
Open

Code block styles no longer syntax highlighted #218

benkeen opened this issue Oct 18, 2019 · 0 comments

Comments

@benkeen
Copy link

benkeen commented Oct 18, 2019

Hi! We updated our Storybook from 5.0.11 to 5.2.4 and even though this module still works, any code blocks within our md files are no longer syntax highlighted.

e.g. in our MD file we have:

```javascript
import { something } from './Something';
(three ` here to close)

Before the Storybook update, the generated HTML from storybook-readme looked like:

<pre class=" language-javascript"><code class=" language-javascript">[code here]</code></pre>

Afterwards it looked the same, except the top-level pre tag was missing the class:

<pre><code class=" language-javascript">[code here]</code></pre>

Also, adding that class name back didn't fix the styling issue. It looks like maybe the CSS isn't being imported any more?

Thanks, great project!

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

No branches or pull requests

1 participant