Merge pull request #1391 from mccraveiro/ordered-list

Limit ordered list marker length
This commit is contained in:
Steven 2018-12-18 09:50:46 -05:00 committed by GitHub
commit 82ace248de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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 = [];