Skip to content

Commit

Permalink
Limit ordered list marker
Browse files Browse the repository at this point in the history
  • Loading branch information
mccraveiro committed Dec 17, 2018
1 parent 8b403a4 commit 672949e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/marked.js
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion test/specs/commonmark/commonmark-spec.js
Expand Up @@ -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 = [];

Expand Down

0 comments on commit 672949e

Please sign in to comment.