Closed
Description
What version of Cosma are you using?
CLI 2.0.0
On which operating system(s) did you observe the bug?
- macOS
- Windows
- Linux
What version of the operating system are you on?
Ubuntu 20.04
Actions leading to the bug
Described below.
Bug description
I think there is something wrong with how markdown lists are parsed. Let me explain with three different examples:
- Big list ✅
* element 1
* element 2
* element 3
* element 4
- Two small lists, separated by a new line 🔴 --> both lists appear broken!
* element 1
* element 2
* element 3
* element 4
- Two small lists, separated by text ✅ --> both list are correctly formatted
* element 1
* element 2
Demo:
* element 3
* element 4
Now, regarding example 3), while lists are correctly formatted, I not sure the formatting is entirely correct either, because the intermediate text shouldn't be a completely newline, it should be indented as to belong to the previous bullet point. It seems that Cosma doesn't properly parse multilines in bullet lists.
Let me show with an example:
* element 1
more info about element 1
* element 2 \
more info about element 2
* element 3
Github: Text is properly indented.
- element 1
more info about element 1 - element 2
more info about element 2 - element 3
Cosma:
None of the options work, text is never indented so as to belong to the previous bulletpoint. It's just treated as text separating different lists, not as a single list.
Additional information
No response