Limit ordered list marker

This commit is contained in:
Mateus Craveiro 2018-12-17 21:18:44 -02:00
parent aaca9296e0
commit 95f687dd14
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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 = [];