fix build

This commit is contained in:
geoffsee
2025-05-23 16:05:20 -04:00
parent fe51876e89
commit 9c7ad7724b
18 changed files with 9823 additions and 570 deletions

View File

@@ -42,7 +42,10 @@ export const webComponents = {
),
ul: ({ children }) => (
<UnorderedList
// pl={3}
// mb={2}
fontSize="sm"
// stylePosition="inside" // Keep bullets inside the text flow
>
{children}
</UnorderedList>
@@ -56,7 +59,12 @@ export const webComponents = {
li: ({ children, ...rest }) => {
const filteredChildren = React.Children.toArray(children)
.filter((child) => !(typeof child === "string" && child.trim() === "\n"))
.map((child) => child);
.map((child, index, array) => {
// if (typeof child === 'string' && index === array.length - 1 && /\n/.test(child)) {
// return '\n';
// }
return child;
});
return <ListItem {...rest}>{filteredChildren}</ListItem>;
},