Incorrect rendering of lists
This content gets rendered incorrectly
This is some text
* This is a bullet. This is a bullet. This is a bullet. This is a bullet. This is a bullet. This is a bullet. This is a bullet.
* This is an indented bullet. This is an indented bullet. This is an indented bullet. This is an indented bullet.
This is some more text. This is some more text. This is some more text. This is some more text.
It should probably get rendered similarly to the way the preview does it
(Shoutout to @opinionatedgeek on discord for pointing this out)
So there are two possible behaviours here:
- Make the text after the newline (
This is some more text ...) part of the last bullet point and indent it. - Don't do 1 and just create a new paragraph
but there are caveats to both
- Pressing enter would then not create a new bullet point which makes the whole typing flow very weird imo
- That's not markdown spec, meaning the lezer parser does 1 and I wouldn't really know how to change it without lot's of hacks or a fork
So I really don't know which route to take here. Obisidian for example does 2 and it feels pretty natural to me
Hmm. Not sure what the spec says, but logically I'd expect that last line to become a new paragraph, EXCEPT if it's indented at the same level as the list. In that case I'd see it as a new line still part of the list item. I see cases where I'd want to have a multi line/paragraph list item.
That would make sense and that is also what obsidian does (I think), but it is not according to spec and I'm frankly unsure on how we would change the way the parser works. This issue seems like it needs a smart hack