When the list is Numbered it’s fine.
- Number one
- Number two
- Number three
But as soon you have some comments in between list then it resets numbers, no matter what you write.
- Number four
Some text here
- Number five
Some text here
Bug with Numbered List
A bug has been reported where numbered lists reset their numbering when comments or text are inserted between list items. zbor demonstrated the issue and found a workaround by using Preformatted Text tags around the list items.
zbor showed that using backticks (`) before the number and period can maintain the correct numbering. Falco explained that this is a known limitation of markdown and provided examples of how lists can be broken. zbor also discovered that if there is no empty row above the next list item, the list will continue to count correctly.
codinghorror confirmed that this is the way Markdown works.
When the list is Numbered it’s fine.
But as soon you have some comments in between list then it resets numbers, no matter what you write.
Some text here
Some text here
There is a workaround to put Preformatted Text tags around:
When the list is Numbered it’s fine.
But as soon you have some comments in between list then it resets numbers, no matter what you write.
4. Number four
Some text here
5. Number five
Some text here
Yeah, this is a known limitation of markdown, you can’t break the list:
1. Test
2. Another
Comment
3. Works
<br>
If you never break the block
4. See?
Test
Another
Comment
Works
If you never break the block
See?
Markdown-it makes this a little better by allowing lists to start at arbitrary numbers.
This is the way Markdown works.