We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64bd1eb commit 6b4e537Copy full SHA for 6b4e537
storyhelpers/storybook-readme/register.js
@@ -34,7 +34,6 @@ const Readme = props => {
34
35
if (syntaxHighlighters.length > 0) {
36
for (const item of syntaxHighlighters) {
37
- item.style.display = 'none';
38
const children = item.children;
39
const parent = item.parentElement;
40
@@ -59,7 +58,10 @@ const Readme = props => {
59
58
<SyntaxHighlighter
60
className="storybook-readme-syntax-highlighter"
61
children={String(children).replace(/\n$/, '')}
62
- style={{ ...vs }}
+ style={{
+ ...vs,
63
+ 'pre[class*="language-"]': { display: 'none' },
64
+ }}
65
language={match[1]}
66
PreTag={'div'}
67
{...props}
0 commit comments