fix(deps): update dependency react-markdown to v6 (#5300)

This commit is contained in:
renovate[bot]
2021-04-27 10:45:59 +03:00
committed by GitHub
parent b8eea35479
commit 85550eba9e
3 changed files with 64 additions and 59 deletions

View File

@ -2,7 +2,7 @@ import React, { Fragment } from 'react';
import Markdown from 'react-markdown';
function Markdownify({ source }) {
return <Markdown renderers={{ root: Fragment, paragraph: Fragment }}>{source}</Markdown>;
return <Markdown components={{ '**': Fragment, p: Fragment }}>{source}</Markdown>;
}
export default Markdownify;