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}
);