Skip to content

Commit

Permalink
update Table.Cell and Span
Browse files Browse the repository at this point in the history
  • Loading branch information
thedannywahl committed Mar 1, 2024
1 parent 53e0d50 commit 494be18
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions isp-site/src/components/mdtoui.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const mdtoui = {
p: ({ node, ...props }) => <Text as={node.tagName} {...props} />,
em: ({ node, ...props }) => <Text fontStyle="italic" {...props} />,
strong: ({ node, ...props }) => <Text weight="bold" {...props} />,
span: ({ node, ...props }) => <Text {...props} />,
span: ({ node, ...props }) => <Text as={node.tagName} {...props} />,
code: ({ node, ...props }) => <Text as={node.tagName} {...props} />,
del: ({ node, ...props }) => <Text as={node.tagName} {...props} />,
blockquote: ({ node, ...props }) => {
Expand Down Expand Up @@ -196,14 +196,7 @@ const mdtoui = {
return (
<Table.Row {...tbrProps}>
{Children.map(children, (child) => {
const { children, ...tdProps } = child.props;
return (
<Table.Cell {...tdProps}>
{Children.map(children, (child) => {
return child;
})}
</Table.Cell>
);
return <Table.Cell {...child.props} />;
})}
</Table.Row>
);
Expand Down

0 comments on commit 494be18

Please sign in to comment.