'use client';
import ReactMarkdown from 'react-markdown';
import remarkGfm from 'remark-gfm';
import { containedLongTextClass } from '@/lib/text-wrapping';
export function MarkdownContent({ content }: { content: string }) {
return (
*:first-child]:mt-0 [&>*:last-child]:mb-0 ${containedLongTextClass}`}>
(
),
thead: ({ children, ...props }) => (
{children}
),
th: ({ children, ...props }) => (
{children}
|
),
td: ({ children, ...props }) => (
{children}
|
),
tr: ({ children, ...props }) => (
{children}
),
}}
>
{content}
);
}