Remove color style for list items, and change first-child to first-of-type based on console error for SSR (#127)
This commit is contained in:
parent
04adbb749b
commit
26673626d2
|
@ -143,7 +143,7 @@ const MDComponents = {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
li: ({ children }: any) => {
|
li: ({ children }: any) => {
|
||||||
return <ListItem color='primary'>{children}</ListItem>;
|
return <ListItem>{children}</ListItem>;
|
||||||
},
|
},
|
||||||
note: ({ children }: any) => {
|
note: ({ children }: any) => {
|
||||||
return <Note>{children}</Note>;
|
return <Note>{children}</Note>;
|
||||||
|
|
|
@ -116,7 +116,7 @@ const DocPage: NextPage<Props> = ({ frontmatter, content, navLinks, lastModified
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|
||||||
<Flex width='100%' placeContent='space-between' gap={8}>
|
<Flex width='100%' placeContent='space-between' gap={8}>
|
||||||
<Stack maxW='768px' sx={{ "*:first-child": { marginTop: '0 !important' } }}>
|
<Stack maxW='768px' sx={{ "*:first-of-type": { marginTop: '0 !important' } }}>
|
||||||
<ReactMarkdown
|
<ReactMarkdown
|
||||||
remarkPlugins={[gfm]}
|
remarkPlugins={[gfm]}
|
||||||
rehypePlugins={[rehypeRaw]}
|
rehypePlugins={[rehypeRaw]}
|
||||||
|
|
Loading…
Reference in New Issue