Skip to content

Commit

Permalink
Use remarkable instead of marked (reactjs#140)
Browse files Browse the repository at this point in the history
Closes reactjs#139.
  • Loading branch information
sophiebits committed Jun 3, 2016
1 parent 4fa16fd commit 06b89a1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react-dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/5.6.16/browser.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/marked/0.3.5/marked.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/remarkable/1.6.2/remarkable.min.js"></script>
</head>
<body>
<div id="content"></div>
Expand Down
3 changes: 2 additions & 1 deletion public/scripts/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@

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

Expand Down

0 comments on commit 06b89a1

Please sign in to comment.