Update react-markdown to the latest version 🚀 (#986)

* fix(package): update react-markdown to version 3.1.5

* Fix tsc errors, match original behaviour of V2 as closely as possible
This commit is contained in:
greenkeeper[bot] 2018-02-05 16:41:33 -06:00 committed by Daniel Ternyak
parent 2a4ad180d3
commit 057a1095d3
2 changed files with 3 additions and 4 deletions

View File

@ -10,11 +10,10 @@ const Translate = ({ translationKey }: Props) => {
const source = translateRaw(translationKey);
return (
<Markdown
containerTagName="span"
containerProps={{ 'data-l10n-key': translationKey }}
escapeHtml={true}
unwrapDisallowed={true}
allowedTypes={['Text', 'Link', 'Emph', 'Strong', 'Code']}
allowedTypes={['link', 'emphasis', 'strong', 'code', 'root']}
renderers={{ root: 'span' }}
source={source}
/>
);

View File

@ -36,7 +36,7 @@
"rc-slider": "8.6.0",
"react": "16.2.0",
"react-dom": "16.2.0",
"react-markdown": "2.5.1",
"react-markdown": "3.1.5",
"react-redux": "5.0.6",
"react-router-dom": "4.2.2",
"react-router-redux": "4.0.8",