Skip to content

Commit

Permalink
Merge pull request markedjs#1391 from mccraveiro/ordered-list
Browse files Browse the repository at this point in the history
Limit ordered list marker length
  • Loading branch information
styfle committed Dec 18, 2018
2 parents 31c3ad8 + 672949e commit 7b3eedf
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 7b3eedf

Please sign in to comment.