'use client'; import { cn } from '@/lib/utils'; import Mardown from 'react-markdown'; import remarkBreaks from 'remark-breaks'; import remarkGfm from 'remark-gfm'; export default function ToHTML({ data, className }: { data: string; className?: string }) { return (
( ), code: ({ node, ...props }) => ( ) }} remarkPlugins={[remarkGfm, remarkBreaks]} > {data}
); }