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.
pull/26374/head
Paul Wackerow 2 years ago committed by GitHub
parent 123b299345
commit 367e7c6e03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/pages/[...slug].tsx

@ -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]}

Loading…
Cancel
Save