diff --git a/apps/webapp/app/components/common/styled-markdown.tsx b/apps/webapp/app/components/common/styled-markdown.tsx new file mode 100644 index 0000000..b398b26 --- /dev/null +++ b/apps/webapp/app/components/common/styled-markdown.tsx @@ -0,0 +1,220 @@ +import ReactMarkdown from "react-markdown"; +import type { Components } from "react-markdown"; +import { cn } from "~/lib/utils"; + +const markdownComponents: Components = { + h1: ({ className, ...props }) => ( +

+ ), + h2: ({ className, ...props }) => ( +

+ ), + h3: ({ className, ...props }) => ( +

+ ), + h4: ({ className, ...props }) => ( +

+ ), + h5: ({ className, ...props }) => ( +

+ ), + h6: ({ className, ...props }) => ( +
+ ), + p: ({ className, ...props }) => ( +

+ ), + ul: ({ className, ...props }) => ( +