From ccc73b579b48bdb95b61ecd5559319e18f87701e Mon Sep 17 00:00:00 2001 From: Nishant Arora Date: Fri, 6 Jan 2017 19:07:19 +0530 Subject: [PATCH] Fixed the article history render issue --- client/app/static/simple_article.jsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/client/app/static/simple_article.jsx b/client/app/static/simple_article.jsx index 303fae9..d8136e0 100644 --- a/client/app/static/simple_article.jsx +++ b/client/app/static/simple_article.jsx @@ -1,9 +1,7 @@ import React from 'react'; import {Link} from 'react-router'; import Loader from './loader.jsx'; -import Error from './error.jsx'; import Alert from 'react-s-alert'; -var Remarkable = require('remarkable'); class SimpleArticle extends React.Component { constructor(props) { @@ -34,15 +32,11 @@ class SimpleArticle extends React.Component { } getRawMarkupBody() { - var md = new Remarkable(); - return { __html: md.render(this.state.article.body) }; + return { __html: this.state.article.body }; } render () { - if(this.state.error) { - return - } if(this.state.article && this.state.article.user) { return(