From 26a8e19a357aee9e1b39623e604ce92bdfaa00df Mon Sep 17 00:00:00 2001 From: Christopher Speller Date: Fri, 14 Aug 2015 15:03:32 -0400 Subject: Revert "MM-375 Adds text formatting features using a modified version of the marked js library" --- web/react/components/post_right.jsx | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) (limited to 'web/react/components/post_right.jsx') diff --git a/web/react/components/post_right.jsx b/web/react/components/post_right.jsx index 19e4cf67a..ad8b54012 100644 --- a/web/react/components/post_right.jsx +++ b/web/react/components/post_right.jsx @@ -56,7 +56,6 @@ RhsHeaderPost = React.createClass({ RootPost = React.createClass({ render: function() { - var allowTextFormatting = config.AllowTextFormatting; var post = this.props.post; var message = utils.textToJsx(post.message); var isOwner = UserStore.getCurrentId() == post.user_id; @@ -77,11 +76,6 @@ RootPost = React.createClass({ channelName = (channel.type === 'D') ? "Private Message" : channel.display_name; } - var messageHolder =

{message}

; - if (allowTextFormatting) { - messageHolder =
{message}
; - } - return (
{ channelName }
@@ -107,7 +101,7 @@ RootPost = React.createClass({
- {messageHolder} +

{message}

{ post.filenames && post.filenames.length > 0 ? {message}

; - if (allowTextFormatting) { - messageHolder =
{message}
; - } - return (
@@ -172,7 +160,7 @@ CommentPost = React.createClass({
- {messageHolder} +

{message}

{ post.filenames && post.filenames.length > 0 ?
- +
{ posts_array.map(function(cpost) { - return + return })}
-- cgit v1.2.3-1-g7c22