From 9a5e0565cbf8895b4e7d52d3e8ddb58943a83b3e Mon Sep 17 00:00:00 2001 From: Luis Date: Sat, 13 Jun 2026 18:13:33 +0200 Subject: [PATCH] it actually works (md) --- src/components/ui/MarkdownContent.tsx | 105 ++++++++++++++++++-------- 1 file changed, 73 insertions(+), 32 deletions(-) diff --git a/src/components/ui/MarkdownContent.tsx b/src/components/ui/MarkdownContent.tsx index b542ec1..dba6b1e 100644 --- a/src/components/ui/MarkdownContent.tsx +++ b/src/components/ui/MarkdownContent.tsx @@ -12,41 +12,82 @@ export default function MarkdownContent({ content, size = "full", }: MarkdownContentProps) { - const isCompact = size === "compact"; - return (
- {content} + ( +

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

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

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

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

+ ), + a: ({ ...props }) => ( + + ), + strong: ({ ...props }) => ( + + ), + em: ({ ...props }) => ( + + ), + code: ({ ...props }) => ( + + ), + pre: ({ ...props }) => ( +

+          ),
+          blockquote: ({ ...props }) => (
+            
+ ), + ul: ({ ...props }) => ( +
    + ), + ol: ({ ...props }) => ( +
      + ), + li: ({ ...props }) => ( +
    1. + ), + hr: ({ ...props }) => ( +
      + ), + table: ({ ...props }) => ( + + ), + thead: ({ ...props }) => ( + + ), + th: ({ ...props }) => ( +
      + ), + td: ({ ...props }) => ( + + ), + img: ({ ...props }) => ( + + ), + }} + > + {content} + ); } \ No newline at end of file