Skip to content

Commit

Permalink
🐛 fix: Don't trim codeBlock (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
sxjeru authored Aug 12, 2024
1 parent 9099427 commit 820bcd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Markdown/CodeBlock.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const useCode = (raw: any) => {

if (!children) return;

const content = (Array.isArray(children) ? (children[0] as string) : children).trim();
const content = (Array.isArray(children) ? (children[0] as string) : children);

const lang = className?.replace('language-', '') || FALLBACK_LANG;

Expand Down

0 comments on commit 820bcd9

Please sign in to comment.