From 836fe52faf03728498f908a0c181730b222cf2b8 Mon Sep 17 00:00:00 2001 From: Alex Arvanitidis Date: Mon, 9 Sep 2024 11:51:53 +0300 Subject: [PATCH] fix: markdown h1,h2,h3 --- .../[modelId]/components/MarkdownRenderer.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/app/dashboard/models/[modelId]/components/MarkdownRenderer.tsx b/src/app/dashboard/models/[modelId]/components/MarkdownRenderer.tsx index df9a500..f629c30 100644 --- a/src/app/dashboard/models/[modelId]/components/MarkdownRenderer.tsx +++ b/src/app/dashboard/models/[modelId]/components/MarkdownRenderer.tsx @@ -24,13 +24,25 @@ export default function MarkdownRenderer({ return

{children}

; }, h1({ children }) { - return

{children}

; + return ( +

+ {children} +

+ ); }, h2({ children }) { - return

{children}

; + return ( +

+ {children} +

+ ); }, h3({ children }) { - return

{children}

; + return ( +

+ {children} +

+ ); }, ol({ children }) { return
    {children}
;