Skip to content

Commit

Permalink
Update renderer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahDragon authored Apr 2, 2017
1 parent 9bea129 commit fae8af9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ var MarkedRenderer = marked.Renderer;
function Renderer() {
MarkedRenderer.listitem = function(text){
if (/^\s*\[[x ]\]\s*/.test(text)) {
text = text
.replace(/^\s*\[ \]\s*/, '<i class="empty checkbox icon"></i> ')
.replace(/^\s*\[x\]\s*/, '<i class="checked checkbox icon"></i> ');
text = text.replace(/^\s*\[ \]\s*/, '<i class="empty checkbox icon"></i> ').replace(/^\s*\[x\]\s*/, '<i class="checked checkbox icon"></i> ');
return '<li style="list-style: none">' + text + '</li>';
} else {
return '<li>' + text + '</li>';
Expand Down

0 comments on commit fae8af9

Please sign in to comment.