import React from 'react'; import Markdown from 'react-markdown'; import remarkGfm from 'remark-gfm'; import remarkToc from 'remark-toc'; import remarkFrontmatter from 'remark-frontmatter'; import rehypeRaw from 'rehype-raw'; import rehypeSanitize from 'rehype-sanitize'; import { Prism as SyntaxHighlighter } from 'react-syntax-highlighter'; import { oneDark } from 'react-syntax-highlighter/dist/esm/styles/prism'; const MarkdownRenderer = ({ children }: { children: React.ReactNode }) => { return (
{ children }
);
}
}
} }
>
{
children as any
}