From f95b1b36ca5e35fea64161674484e756d3e8e338 Mon Sep 17 00:00:00 2001 From: fbruc03 <65135023+fbruc03@users.noreply.github.com> Date: Fri, 11 Nov 2022 12:21:13 +0100 Subject: [PATCH] fix faq video --- package.json | 1 + src/components/Faq.js | 2 ++ 2 files changed, 3 insertions(+) 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]} >