diff --git a/package.json b/package.json index db16a93..d8881d9 100644 --- a/package.json +++ b/package.json @@ -43,6 +43,7 @@ "redux-devtools-dock-monitor": "^1.2.0", "redux-devtools-log-monitor": "^1.4.0", "redux-thunk": "^2.3.0", + "rehype-raw": "^6.1.1", "sendmail": "^1.6.1", "webpack": "^4.46.0", "webpack-cli": "^3.3.12" diff --git a/src/components/pages/patron_list.jsx b/src/components/pages/patron_list.jsx index 11cf990..6f3f9c7 100644 --- a/src/components/pages/patron_list.jsx +++ b/src/components/pages/patron_list.jsx @@ -1,5 +1,4 @@ import React from 'react'; -import ReactMarkdown from 'react-markdown/with-html'; //panels import CommonLinks from '../panels/common_links.jsx'; diff --git a/src/components/pages/task_list.jsx b/src/components/pages/task_list.jsx index c1a8bd5..b7c7e09 100644 --- a/src/components/pages/task_list.jsx +++ b/src/components/pages/task_list.jsx @@ -1,5 +1,4 @@ import React from 'react'; -import ReactMarkdown from 'react-markdown/with-html'; //panels import CommonLinks from '../panels/common_links.jsx'; diff --git a/src/components/panels/markdown.jsx b/src/components/panels/markdown.jsx index 694cb21..fb62313 100644 --- a/src/components/panels/markdown.jsx +++ b/src/components/panels/markdown.jsx @@ -1,6 +1,7 @@ import React from 'react'; import PropTypes from 'prop-types'; -import ReactMarkdown from 'react-markdown/with-html'; +import ReactMarkdown from 'react-markdown'; +import rehypeRaw from 'rehype-raw'; class Markdown extends React.Component { constructor(props) { @@ -20,7 +21,7 @@ class Markdown extends React.Component { render() { if (this.state.data) { - return (); + return (); } else { return (

Loading markdown...

); } diff --git a/src/components/panels/news.jsx b/src/components/panels/news.jsx index ce40a60..92eaef2 100644 --- a/src/components/panels/news.jsx +++ b/src/components/panels/news.jsx @@ -1,5 +1,6 @@ import React from 'react'; -import ReactMarkdown from 'react-markdown/with-html'; +import ReactMarkdown from 'react-markdown'; +import rehypeRaw from 'rehype-raw'; import PropTypes from 'prop-types'; class News extends React.Component { @@ -19,7 +20,7 @@ class News extends React.Component { return (
{Object.keys(this.state).map((key) =>
- +
)}