I have Markdown file that look like this:
1. First
Some text and other stuff
2. Second
Othe stuff
But after render it's generated as:
1. First
Some text and other stuff
1. Second
Othe stuff
Is there a solution to make second ordered list start from 2?
jekyll is using Kramdown as Markdown parser that support setting custom attributes (see docs). And html5 support start attribute that change start number of ordered list see MDN.
The markdown file need to look like this:
1. First
Some text and other stuff
{:start="2"}
2. Second
Othe stuff
Another way in this case is to simply indent the Some text and other stuff
paragraph with 4 spaces. Then 2. Second
will know to continue the numbering.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With