remove any margin on first MD item (#109)

[Fixes #75, issue when articles start with an H2 had extra margin between the H1 section and the starting H2.
This commit is contained in:
Paul Wackerow 2022-12-02 17:56:44 +01:00 committed by GitHub
parent 123b299345
commit 367e7c6e03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -116,7 +116,7 @@ const DocPage: NextPage<Props> = ({ frontmatter, content, navLinks, lastModified
</Stack>
<Flex width='100%' placeContent='space-between'>
<Stack maxW='768px'>
<Stack maxW='768px' sx={{ "*:first-child": { marginTop: '0 !important' } }}>
<ReactMarkdown
remarkPlugins={[gfm]}
rehypePlugins={[rehypeRaw]}