Skip to content

Commit

Permalink
💄 style: fix artifacts render markdown (#4327)
Browse files Browse the repository at this point in the history
  • Loading branch information
arvinxx authored Oct 12, 2024
1 parent eda92e2 commit 6bb6ea6
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { Markdown } from '@lobehub/ui';
import dynamic from 'next/dynamic';
import { memo } from 'react';

Expand All @@ -16,6 +17,10 @@ const Renderer = memo<{ content: string; type?: string }>(({ content, type }) =>
return <SVGRender content={content} />;
}

case 'text/markdown': {
return <Markdown>{content}</Markdown>;
}

default: {
return <HTMLRenderer htmlContent={content} />;
}
Expand Down

0 comments on commit 6bb6ea6

Please sign in to comment.