Skip to content

Commit

Permalink
Update renderer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahDragon committed May 25, 2017
1 parent 05db8be commit d89ef6d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/renderer.js
Expand Up @@ -23,7 +23,7 @@ Renderer.prototype.listitem = function(text) {

if (/^\s*(<p>\s*)?\[[x ]\]\s*/i.test(text)) {
text = text.replace(/^\s*(<p>\s*)?\[ \]\s*/i, '<input type="checkbox"></input> ').replace(/^\s*(<p>\s*)?\[x\]\s*/i, '<input type="checkbox" checked></input> ');
result = '<li style="list-style: none">' + text + '</li>\n';
result = text;
} else {
result = '<li>' + text + '</li>\n';
}
Expand Down

0 comments on commit d89ef6d

Please sign in to comment.