careteditor / issues

Caret issues
https://caret.io
326 stars 12 forks source link

Unordered list within ordered list causes renumbering #855

Open mjclemente opened 5 years ago

mjclemente commented 5 years ago

Thanks for the fantastic editor.

This is behavior I noticed within Caret Version 4.0.0-rc22 (4.0.0-rc22).

When I place an unordered list within an ordered list, the auto-incrementing of the outer, ordered list resets. For example, with the following list:

1. I am the first item
2. I am the second
    - I am a point
    - And I am an additional point
3. I'm supposed to be 3, but I always get reset as the list continues

If I continue the list, the 3 resets to 1, and the next item is numbered as 2 instead of 4:

image

Update: This same behavior is also present when a fenced code block is present within an ordered list.

Please let me know if you need anything else from me.

astoilkov commented 5 years ago

Hi Matthew,

I have immediately put this into my tasks list. We will include the fix in the next major update.

Thanks for reporting.

mjclemente commented 5 years ago

Thanks for the super fast response! 👍