use div instead of p

This commit is contained in:
Bowen Tan 2021-11-12 18:10:49 +08:00
parent 91f6228969
commit 862ac6670d

View File

@ -19,13 +19,13 @@ export type TextProps = {
const Text: React.FC<TextProps> = ({ value, cssStyle }) => {
if (value.format === 'md') {
const P = styled.p`
const Div = styled.div`
${cssStyle}
`;
return (
<P>
<Div>
<ReactMarkdown>{value.raw}</ReactMarkdown>
</P>
</Div>
);
}