import { InlineLink } from 'components/ui/InlineLink' import { PropsWithChildren } from 'react' import { ReactMarkdown, ReactMarkdownOptions } from 'react-markdown/lib/react-markdown' import remarkGfm from 'remark-gfm' import { cn } from 'ui' interface MarkdownProps extends Omit { className?: string /** @deprecated Should remove this and just take `children` instead */ content?: string extLinks?: boolean } export const Markdown = ({ children, className, content = '', extLinks = false, ...props }: PropsWithChildren) => { return (

{children}

, code: ({ children }) => {children}, a: ({ href, children }) => {children}, }} {...props} className={cn('text-sm', className)} > {(children as string) ?? content}
) }