2018-07-25 07:47:26 -04:00
|
|
|
import React, { Fragment } from 'react';
|
|
|
|
import Markdown from 'react-markdown';
|
|
|
|
|
2021-02-08 20:01:21 +02:00
|
|
|
function Markdownify({ source }) {
|
2021-04-27 10:45:59 +03:00
|
|
|
return <Markdown components={{ '**': Fragment, p: Fragment }}>{source}</Markdown>;
|
2021-02-08 20:01:21 +02:00
|
|
|
}
|
2018-07-25 07:47:26 -04:00
|
|
|
|
|
|
|
export default Markdownify;
|