Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Start ordered lists using the initial numbers from markdown lists #1144
Adds tests for list creation and continuation when starting with a
Emits 'start' attribute only when necessary; simple cases behave as
Marked version: 0.3.17
Markdown flavor: CommonMark
In most cases, this should be a different person than the contributor.
@paulroub: Thanks again for this contribution!
We've started moving toward using Jasmine for our test harness. We are also looking to stick as close we can to objective examples from the specifications themselves. There are two entries in the CommonMark spec that seem be related to this issue. Would you be willing and able to create tests for these two examples using the proposed solution?
http://spec.commonmark.org/0.28/#example-230 - starting at 0 results in a forced starting number.
http://spec.commonmark.org/0.28/#example-234 - start at 10 and have a code block within a list item.
If you can add a test in