support images in table card markdown

This commit is contained in:
Sidney Alcantara
2022-01-28 17:22:41 +11:00
parent b81a78881f
commit 588f6be163
2 changed files with 4 additions and 2 deletions

View File

@@ -50,7 +50,7 @@ export default function TableCard({
{description && (
<RenderedMarkdown
children={description}
restrictionPreset="singleLine"
//restrictionPreset="singleLine"
/>
)}
</Typography>

View File

@@ -6,8 +6,10 @@ import { Typography, Link } from "@mui/material";
const remarkPlugins = [remarkGfm];
const components = {
a: (p) => <Link color="inherit" {...p} />,
a: (props) => <Link color="inherit" {...props} />,
p: Typography,
// eslint-disable-next-line jsx-a11y/alt-text
img: (props) => <img style={{ maxWidth: "100%" }} {...props} />,
};
const restrictionPresets = {