9 lines
235 B
JavaScript
9 lines
235 B
JavaScript
import React, { Fragment } from 'react';
|
|
import Markdown from 'react-markdown';
|
|
|
|
const Markdownify = ({ source }) => (
|
|
<Markdown renderers={{ root: Fragment, paragraph: Fragment }}>{source}</Markdown>
|
|
);
|
|
|
|
export default Markdownify;
|