import { styled } from '@material-ui/core/styles'; import Typography, { TypographyProps } from '@material-ui/core/Typography'; import {marked} from 'marked'; const Markdown = (props: TypographyProps) => { const {children, ...typographyProps} = props; if (!children) return null; return ( ); }; const Text = styled(Typography)(({theme}) => ({ '& > *:first-child': { marginTop: 0, }, })); export default Markdown;