Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena committed Dec 29, 2021
1 parent 6e2ef05 commit 5d14ce4
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,8 @@ export default function CodeBlock({
styles.codeBlockContainer,
blockClassName,
{
[`language-${languageProp}`]:
languageProp &&
!blockClassName.includes(`language-${languageProp}`),
[`language-${language}`]:
language && !blockClassName.includes(`language-${language}`),
},
ThemeClassNames.common.codeBlock,
)}>
Expand Down

0 comments on commit 5d14ce4

Please sign in to comment.