mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 03:23:02 +00:00
12 lines
374 B
TypeScript
12 lines
374 B
TypeScript
import ReactMarkdown from 'react-markdown';
|
|
import remarkGfm from 'remark-gfm';
|
|
import MarkdownContentClass from './MarkdownContent.module.scss';
|
|
|
|
export function MarkdownContent({ children }: { children: string }) {
|
|
return (
|
|
<div className={MarkdownContentClass.markdown}>
|
|
<ReactMarkdown remarkPlugins={[remarkGfm]}>{children}</ReactMarkdown>
|
|
</div>
|
|
);
|
|
}
|