import ReactMarkdown from 'react-markdown'; import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; import { oneDark } from 'react-syntax-highlighter/dist/esm/styles/prism'; import remarkEmoji from 'remark-emoji'; import remarkGfm from 'remark-gfm'; import './MarkdownContent.css'; export default function PostContent({ content }: { content: string }) { return (
{String(children).replace(/\n$/, '')} ) : ( {children} ); }, }} > {content}
); }