Updated packages to fix vulnerabilities

This commit is contained in:
2021-07-15 08:52:54 +10:00
parent 93a3c30e81
commit 2532bf1867
3 changed files with 3577 additions and 3015 deletions
+3 -2
View File
@@ -1,5 +1,6 @@
import React, { useState, useEffect } from 'react';
import ReactMarkdown from 'react-markdown/with-html';
import ReactMarkdown from 'react-markdown';
import rehypeRaw from 'rehype-raw';
const Markdown = props => {
//content?
@@ -27,7 +28,7 @@ const Markdown = props => {
}
return (
<ReactMarkdown escapeHtml={false} props={{...props}}>{contentHook}</ReactMarkdown>
<ReactMarkdown rehypePlugins={[rehypeRaw]} escapeHtml={false} props={{...props}}>{contentHook}</ReactMarkdown>
);
};