import ReactMarkdown, { type Components } from "react-markdown" /** * An assistant's answer as markdown, compact and on the panel's text size. * * Raw HTML is never rendered, and images are dropped so an answer cannot make * the browser fetch a URL on its own. A link opens in a new tab when clicked. */ const components: Components = { a: ({ node: _, ...props }) => ( ), ul: ({ node: _, ...props }) => (
),
}
export default function Markdown({ text }: { text: string }) {
return (