import Link from 'next/link' import { ReactMarkdown, ReactMarkdownOptions } from 'react-markdown/lib/react-markdown' import remarkGfm from 'remark-gfm' import { cn } from 'ui' interface Props extends Omit { className?: string content: string extLinks?: boolean } const Markdown = ({ className, content = '', extLinks = false, ...props }: Props) => { return (

{children}

, a: ({ href, children }) => { if (extLinks) { return ( {children} ) } else { return {children} } }, }} {...props} className={cn('prose text-sm', className)} > {content}
) } export { Markdown }