mirror of
https://github.com/rowyio/rowy.git
synced 2025-12-29 00:16:39 +01:00
support images in table card markdown
This commit is contained in:
@@ -50,7 +50,7 @@ export default function TableCard({
|
||||
{description && (
|
||||
<RenderedMarkdown
|
||||
children={description}
|
||||
restrictionPreset="singleLine"
|
||||
//restrictionPreset="singleLine"
|
||||
/>
|
||||
)}
|
||||
</Typography>
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user