website: Simplify h4 heading component rendering

This commit is contained in:
Corwin Smith 2025-03-06 17:59:27 +01:00
parent 6e30f1bb51
commit 1255eba343

View file

@ -92,11 +92,9 @@ const MDComponents = {
); );
}, },
h4: ({ children }: any) => { h4: ({ children }: any) => {
const { children: parsedChildren, headingId } = parseHeadingId(children);
return ( return (
<Heading as='h4' mb='2.5 !important' {...h4} id={headingId}> <Heading as='h4' mb='2.5 !important' {...h4} id={children}>
{parsedChildren} {children}
</Heading> </Heading>
); );
}, },