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 11b98ed commit 5a0b17d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ require('util').inherits(Renderer, MarkedRenderer);
Renderer.prototype.listitem = function(text) {
if (/^\s*\[[x ]\]\s*/.test(text)) {
text = text.replace(/^\s*\[ \]\s*/, '<input type="checkbox"></input> ').replace(/^\s*\[x\]\s*/, '<input type="checkbox" checked></input> ');
return '<li style="list-style: none">' + text + '</li>';
return '<li style="list-style: none">' + text + '</li>\n';
} else {
return '<li>' + text + '</li>';
return '<li>' + text + '</li>\n';
}
};

Expand Down

0 comments on commit 5a0b17d

Please sign in to comment.