Repository navigation
fix: allow zero-padded ordered lists starting at 1 to interrupt paragraphs - #4291
Open
saudademjj wants to merge 2 commits into
Open
saudademjj wants to merge 2 commits into
saudademjj wants to merge 2 commits into
Conversation
|
@saudademjj is attempting to deploy a commit to the MarkedJS Team on Vercel. A member of the Team first needs to authorize it. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
UziTech
requested changes
Nov 28, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Marked version: 18.2.0 - 18.3.0
Markdown flavor: CommonMark|GitHub Flavored Markdown
Description
other.listInterruptsParagraph,blockNormal.paragraph,blockGfm.paragraph, andgfmTablematched literal1[.)]instead of any 1–9 digit ordered-list marker with start number1(0{0,8}1[.)]). As a result, zero-padded ordered lists like01. bfailed to interrupt paragraphs (including nested lists inside a list item since 18.2.0) and GFM tables.This updates the paragraph/table list-interruption pattern from
1[.)]to0{0,8}1[.)](keeping00.,02., 10-digit0000000001., and empty01.non-interrupting per CommonMark §5.2/§5.3) and reusesother.listInterruptsParagraphinparagraphandblockGfm.paragraph. Verified all 4 modified regexes remainsafewithtest/recheck.ts.Demo links (
- a\n 01. b\n 02. c,{"gfm":true}):Contributor
test/specs/new/zero_padded_ordered_list_interrupt.{md,html}andtest/specs/new/zero_padded_ordered_list_interrupt_nogfm.{md,html}); or,Committer
In most cases, this should be a different person than the contributor.