Bug with Numbered list

When the list is Numbered it’s fine.

  1. Number one
  2. Number two
  3. Number three

But as soon you have some comments in between list then it resets numbers, no matter what you write.

  1. Number four

Some text here

  1. Number five

Some text here

1 Like

There is a workaround to put Preformatted Text tags around:

When the list is Numbered it’s fine.

  1. Number one
  2. Number two
  3. Number three

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?
  1. Test

  2. Another
    Comment

  3. Works


    If you never break the block

  4. See?

Markdown-it makes this a little better by allowing lists to start at arbitrary numbers.

6 Likes

Ok, thx for the link

Edit:

To make in simple words to someone who could find this usefull
I’ve found that if you don’t have empty row above (write anything) the list will continue to count.

In the example number 4 has _ above while number 5 has empty row.

This is the way Markdown works.