mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-16 21:16:37 +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) => {
|
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>
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue