Skip to content

Commit

Permalink
code-block wrapping
Browse files Browse the repository at this point in the history
  • Loading branch information
jackschedel committed Jan 3, 2024
1 parent 53b04d8 commit d9fb647
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ const CodeBlock = ({
<div className='bg-custom-black rounded-md'>
<CodeBar lang={lang} blockRef={codeRef} />
<div className='p-4 overflow-y-auto'>
<code ref={codeRef} className={`!whitespace-pre hljs language-${lang}`}>
<code
ref={codeRef}
className={`!whitespace-pre-wrap hljs language-${lang}`}
>
{codeChildren}
</code>
</div>
Expand Down

0 comments on commit d9fb647

Please sign in to comment.