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 2d1e045 commit 6b239d6Copy full SHA for 6b239d6
components/Code/index.jsx
@@ -54,10 +54,9 @@ function Code(props) {
54
dark: theme === 'dark',
55
};
56
57
- const codeContent =
58
- syntaxHighlighter && children && isHydrated ?
59
- syntaxHighlighter(children[0], language, codeOpts)
60
- : children?.[0] || '';
+ const codeContent = syntaxHighlighter && children && isHydrated
+ ? syntaxHighlighter(children[0], language, codeOpts)
+ : children?.[0] || '';
61
62
return (
63
<React.Fragment>
0 commit comments