Fix code blocks

Signed-off-by: Sacha Al Himdani <sacha@getprobo.com>
This commit is contained in:
Sacha Al Himdani
2026-01-05 10:45:20 +01:00
parent b438732bf7
commit 75e28627a5
3 changed files with 39 additions and 3 deletions

View File

@@ -23,6 +23,19 @@ export function Markdown({ content }: Props) {
{children}
</a>
),
pre: ({ children, ...props }) => (
<pre
className="border border-border-solid rounded p-4 bg-transparent font-mono text-sm overflow-x-auto text-inherit"
{...props}
>
{children}
</pre>
),
code: ({ children, ...props }) => (
<code className="font-mono text-sm text-inherit" {...props}>
{children}
</code>
),
}}
>
{content}