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:
parent
2a4ad180d3
commit
057a1095d3
|
@ -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}
|
||||
/>
|
||||
);
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue