aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/components/renderers/Markdown.js
blob: b9b91120f3b666134d09c34e0e666510dd5012c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import React from 'react';
import ReactMarkdown from 'react-markdown';
import styled from 'styled-components'

const Content = styled.div`
    max-width: 100%;
    overflow-wrap: anywhere;
    img {
        max-width: 100%;
    }
`
const Markdown = ({content}) => {
    return <Content>
        <ReactMarkdown source={content} />
    </Content>;
}

export default Markdown