import ReactMarkdown from 'react-markdown' import remarkGfm from 'remark-gfm' import { Typography } from 'antd' import PropTypes from 'prop-types' const { Paragraph, Text } = Typography const UlComponent = ({ children }) => UlComponent.propTypes = { children: PropTypes.node } const OlComponent = ({ children }) => (
    {children}
) OlComponent.propTypes = { children: PropTypes.node } const LiComponent = ({ children }) =>
  • {children}
  • LiComponent.propTypes = { children: PropTypes.node } const BlockquoteComponent = ({ children }) => (
    {children}
    ) BlockquoteComponent.propTypes = { children: PropTypes.node } const MarkdownDisplay = ({ content }) => { const components = { h1: (props) =>

    , h2: (props) =>

    , h3: (props) =>

    , h4: (props) =>

    , h5: (props) =>

    , h6: (props) =>
    , p: (props) =>

    , ul: UlComponent, ol: OlComponent, li: LiComponent, strong: (props) => , em: (props) => , code: ({ inline, ...props }) => inline ? ( ) : (

            
          ),
        blockquote: BlockquoteComponent
      }
    
      return (
        
    {content}
    ) } MarkdownDisplay.propTypes = { content: PropTypes.string.isRequired } export default MarkdownDisplay