Skip to content

Commit

Permalink
Fixing bug in trim
Browse files Browse the repository at this point in the history
  • Loading branch information
bradmering committed Mar 13, 2023
1 parent 9e8239b commit ea390c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/Markdown/MarkdownComponents.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const MarkdownComponents: CustomRenderers = {
const { className } = props;
const match = /language-(\w+)/.exec(className || '');
if (props.children[0]) {
props.children[0] = props.children[0].toString().trim(`\n`);
props.children[0] = props.children[0].toString().trim();
}
return match ? (
<SyntaxHighlighter
Expand Down

0 comments on commit ea390c3

Please sign in to comment.