mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 03:23:29 +01:00
fix: markdown images and links
This commit is contained in:
@@ -234,7 +234,21 @@ export default function Slug(props: Partial<SidebarLayoutProps & { error?: strin
|
|||||||
</Affix>
|
</Affix>
|
||||||
</>
|
</>
|
||||||
) : props.data?.source ? (
|
) : props.data?.source ? (
|
||||||
<Box px="xl">
|
<Box
|
||||||
|
sx={(theme) => ({
|
||||||
|
a: {
|
||||||
|
backgroundColor: 'transparent',
|
||||||
|
color: theme.colors.blurple![0],
|
||||||
|
textDecoration: 'none',
|
||||||
|
},
|
||||||
|
img: {
|
||||||
|
borderStyle: 'none',
|
||||||
|
maxWidth: '100%',
|
||||||
|
boxSizing: 'content-box',
|
||||||
|
},
|
||||||
|
})}
|
||||||
|
px="xl"
|
||||||
|
>
|
||||||
<MDXRemote {...props.data.source} />
|
<MDXRemote {...props.data.source} />
|
||||||
</Box>
|
</Box>
|
||||||
) : null}
|
) : null}
|
||||||
|
|||||||
Reference in New Issue
Block a user