mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-26 15:47:21 +00:00
website: Simplify h4 heading component rendering
This commit is contained in:
parent
6e30f1bb51
commit
1255eba343
1 changed files with 2 additions and 4 deletions
|
|
@ -92,11 +92,9 @@ const MDComponents = {
|
|||
);
|
||||
},
|
||||
h4: ({ children }: any) => {
|
||||
const { children: parsedChildren, headingId } = parseHeadingId(children);
|
||||
|
||||
return (
|
||||
<Heading as='h4' mb='2.5 !important' {...h4} id={headingId}>
|
||||
{parsedChildren}
|
||||
<Heading as='h4' mb='2.5 !important' {...h4} id={children}>
|
||||
{children}
|
||||
</Heading>
|
||||
);
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue