Skip to content

Commit

Permalink
fix(react): component without css class (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
azat-io authored Mar 30, 2024
1 parent cbd421a commit 5c327d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/react/ShikiMagicMoveRenderer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export function ShikiMagicMoveRenderer(
return (
<pre
ref={container}
className={`shiki-magic-move-container ${className}`}
className={`shiki-magic-move-container ${className || ''}`.trim()}
style={style}
>
{
Expand Down

0 comments on commit 5c327d4

Please sign in to comment.