mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +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>
|
||||
</>
|
||||
) : 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} />
|
||||
</Box>
|
||||
) : null}
|
||||
|
||||
Reference in New Issue
Block a user