"use client"; import * as React from "react"; import ReactMarkdown, { type Components } from "react-markdown"; import remarkGfm from "remark-gfm"; // Tailwind-styled element overrides (no typography plugin in this project, so we // style each element). `node` is stripped — it's not a valid DOM attribute. const components: Components = { h1: ({ node, ...p }) =>
, h2: ({ node, ...p }) => , h3: ({ node, ...p }) => , h4: ({ node, ...p }) => , p: ({ node, ...p }) => , ul: ({ node, ...p }) =>
{children}
) : (
{children}
);
},
table: ({ node, ...p }) => (