Skip to content

Commit

Permalink
Update to match changes on website
Browse files Browse the repository at this point in the history
  • Loading branch information
zpao committed Sep 22, 2015
1 parent 2661991 commit 150a055
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions public/scripts/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,18 @@
*/

var Comment = React.createClass({
render: function() {
rawMarkup: function() {
var rawMarkup = marked(this.props.children.toString(), {sanitize: true});
return { __html: rawMarkup };
},

render: function() {
return (
<div className="comment">
<h2 className="commentAuthor">
{this.props.author}
</h2>
<span dangerouslySetInnerHTML={{__html: rawMarkup}} />
<span dangerouslySetInnerHTML={this.rawMarkup()} />
</div>
);
}
Expand Down

0 comments on commit 150a055

Please sign in to comment.