Skip to content

Commit 82f86cc

Browse files
Update react-markdown to a new version that doesn't need a polyfill
1 parent cec5c24 commit 82f86cc

File tree

3 files changed

+532
-13
lines changed

3 files changed

+532
-13
lines changed

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
"react-dom": "^17.0.2",
3737
"react-ga": "^3.1.2",
3838
"react-helmet": "^6.1.0",
39+
"react-markdown": "^8.0.0",
3940
"react-router-dom": "^5.2.0",
4041
"react-scripts": "5.0.0",
4142
"serve": "^11.3.2",

src/components/App/Legal/Legal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { FunctionComponent } from "react";
2-
// import ReactMarkdown from "react-markdown";
2+
import ReactMarkdown from "react-markdown";
33
import raw from "raw.macro";
44
import { Box, Container } from "@material-ui/core";
55
import { Helmet } from "react-helmet";
@@ -12,7 +12,7 @@ const Legal: FunctionComponent = () => {
1212
</Helmet>
1313
<Box p={1} pt={[2, 4]} pb={[4, 8]}>
1414
<Container>
15-
{/* <ReactMarkdown source={raw("../../../resources/legal.md")} /> */}
15+
<ReactMarkdown>{raw("../../../resources/legal.md")}</ReactMarkdown>
1616
</Container>
1717
</Box>
1818
</>

0 commit comments

Comments
 (0)