"use client"; import ReactMarkdown, { type Components } from "react-markdown"; import remarkGfm from "remark-gfm"; import { MarkdownCodeBlock } from "@/components/markdown-code-block"; import { promoteDefinitionLists } from "@/lib/chat-definition-lists"; const markdownComponents: Components = { a: ({ children, href, ...props }) => ( {children} ), table: ({ children }) => (
{children}
), pre: ({ children }) => {children}, ul: ({ children }) => , ol: ({ children }) =>
    {children}
, }; export function renderChatMarkdown(text: string) { return ( {promoteDefinitionLists(text)} ); }