diff --git a/package.json b/package.json index 03fad70..a350d05 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,7 @@ "reactour": "^1.18.7", "redux": "^4.2.0", "redux-thunk": "^2.4.1", + "rehype-raw": "^6.1.1", "remark-gemoji": "^7.0.1", "remark-gfm": "^3.0.1", "styled-components": "^4.4.1", diff --git a/src/components/Faq.js b/src/components/Faq.js index 2909fc7..173d5f6 100644 --- a/src/components/Faq.js +++ b/src/components/Faq.js @@ -8,6 +8,7 @@ import Button from "@material-ui/core/Button"; import Typography from "@material-ui/core/Typography"; import * as Blockly from "blockly"; import ReactMarkdown from "react-markdown"; +import rehypeRaw from "rehype-raw"; import Container from "@material-ui/core/Container"; import ExpansionPanel from "@material-ui/core/ExpansionPanel"; import ExpansionPanelSummary from "@material-ui/core/ExpansionPanelSummary"; @@ -61,6 +62,7 @@ class Faq extends Component { className="news" allowDangerousHtml="true" children={object.answer} + rehypePlugins={[rehypeRaw]} >