diff --git a/lib/marked.js b/lib/marked.js index 849907f443..15ad63bfe7 100644 --- a/lib/marked.js +++ b/lib/marked.js @@ -44,7 +44,7 @@ block.def = edit(block.def) .replace('title', block._title) .getRegex(); -block.bullet = /(?:[*+-]|\d+\.)/; +block.bullet = /(?:[*+-]|\d{1,9}\.)/; block.item = /^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/; block.item = edit(block.item, 'gm') .replace(/bull/g, block.bullet) diff --git a/test/specs/commonmark/commonmark-spec.js b/test/specs/commonmark/commonmark-spec.js index 631cb8fa64..5b62131134 100644 --- a/test/specs/commonmark/commonmark-spec.js +++ b/test/specs/commonmark/commonmark-spec.js @@ -248,7 +248,7 @@ describe('CommonMark 0.28 List items', function() { var section = 'List items'; // var shouldPassButFails = []; - var shouldPassButFails = [229, 237, 236, 227, 218, 243, 259, 241, 239, 247, 246, 225, 220, 258, 260, 244]; + var shouldPassButFails = [237, 236, 227, 218, 243, 259, 241, 239, 247, 246, 225, 220, 258, 260, 244]; var willNotBeAttemptedByCoreTeam = [];