From 1970ac20a1813b157a1a1f1b59f9e437d34af8c5 Mon Sep 17 00:00:00 2001 From: Guillaume Date: Fri, 31 Jan 2025 16:24:02 +0100 Subject: [PATCH] Remove markdown "nostyle" table code --- components/markdown.tsx | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/components/markdown.tsx b/components/markdown.tsx index d4c8639a..6bff413b 100644 --- a/components/markdown.tsx +++ b/components/markdown.tsx @@ -135,25 +135,10 @@ const Markdown: FunctionComponent<{ ); }, table: ({ children }) => { - // check if 'NOSTYLE' is present in the header first cell - let noStyle = false; - - let firstCell = - children[0]?.props?.children?.props?.children?.[0]?.props?.children; - if (firstCell && firstCell.includes('NOSTYLE')) { - noStyle = true; - } - return ( -
+
- - {noStyle ? children[1] : children} -
+ {children}
);