import { FC } from 'react'; import clsx from 'clsx'; import ReactMarkdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; import rehypeRaw from 'rehype-raw'; import SyntaxHighlighter from 'react-syntax-highlighter'; import agate from 'react-syntax-highlighter/dist/esm/styles/hljs/agate'; import 'github-markdown-css'; import './index.scss'; interface MarkdownProps { children: string; className?: string; } const Markdown: FC = ({ children, className }) => { return (
) : ( {children} ); }, }} />
); }; export default Markdown;