From da7d4458a431beccb0200c3b7409c73b8a3f9aa4 Mon Sep 17 00:00:00 2001 From: Claas Augner Date: Wed, 8 Nov 2023 21:52:35 +0100 Subject: [PATCH] fix(ai-help): migrate to react-markdown v9 --- client/src/plus/ai-help/markdown.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/plus/ai-help/markdown.tsx b/client/src/plus/ai-help/markdown.tsx index 7be5968a016c..a266c490727f 100644 --- a/client/src/plus/ai-help/markdown.tsx +++ b/client/src/plus/ai-help/markdown.tsx @@ -47,10 +47,10 @@ export function Markdown({ children }: { children: string }) { ); }, - code: ({ inline, className, children, ...props }) => { + code: ({ className, children, ...props }) => { const match = /language-(\w+)/.exec(className || ""); const lang = Prism.languages[match?.[1]]; - return !inline && lang ? ( + return lang ? (