website: Remove h4 heading component and update document navigation

This commit is contained in:
Corwin Smith 2025-03-07 11:04:18 +01:00
parent c05e2de963
commit 5bf1c0ffdd
2 changed files with 1 additions and 8 deletions

View file

@ -16,7 +16,7 @@ export const DocumentNav: FC<Props> = ({ content }) => {
.filter(item => item.startsWith('##'))
.filter(item => !item.startsWith('####'))
.map(item => parseHeadingId([item]))
.filter(item => item);
.filter(item => item)
const activeHash = useActiveHash(parsedHeadings.map(heading => heading!.headingId));

View file

@ -91,13 +91,6 @@ const MDComponents = {
</Heading>
);
},
h4: ({ children }: any) => {
return (
<Heading as='h4' mb='2.5 !important' {...h4} id={children}>
{children}
</Heading>
);
},
// tables
table: ({ children }: any) => (
<Flex overflowX='auto'>