mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-01 00:53:47 +00:00
website: Remove h4 heading component and update document navigation
This commit is contained in:
parent
c05e2de963
commit
5bf1c0ffdd
2 changed files with 1 additions and 8 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
|
|
@ -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'>
|
||||
|
|
|
|||
Loading…
Reference in a new issue