Skip to content

Commit

Permalink
fix(theme): preserve line breaks when copying code with showLineNumbe…
Browse files Browse the repository at this point in the history
…rs in Firefox (#8068)

Fix CodeBlock no line breaks copied in Firefox bug
  • Loading branch information
LittleboyHarry committed Sep 8, 2022
1 parent 275f509 commit 710c0c5
Showing 1 changed file with 2 additions and 4 deletions.
Expand Up @@ -39,11 +39,9 @@ export default function CodeBlockLine({
<span className={styles.codeLineContent}>{lineTokens}</span>
</>
) : (
<>
{lineTokens}
<br />
</>
lineTokens
)}
<br />
</span>
);
}

0 comments on commit 710c0c5

Please sign in to comment.