diff --git a/lib/renderer.js b/lib/renderer.js index a8a1d2a..742f6e3 100644 --- a/lib/renderer.js +++ b/lib/renderer.js @@ -22,7 +22,7 @@ Renderer.prototype.listitem = function(text) { var result; if (/^\s*\[[x ]\]\s*/.test(text)) { - text = text.replace(/^\s*\[ \]\s*/, ' ').replace(/^\s*\[x\]\s*/, ' '); + text = text.replace(/^\s*\[ \]\s*/, ' ').replace(/^\s*\[x\]\s*/, ' '); result = '
  • ' + text + '
  • \n'; } else { result = '
  • ' + text + '
  • \n'; diff --git a/test/index.js b/test/index.js index cce65cf..9092a6a 100644 --- a/test/index.js +++ b/test/index.js @@ -74,8 +74,8 @@ describe('Marked renderer', function() { result.should.eql([ '\n', '

    normal text [x] [ ]

    \n',