houseabsolute / Markdent

An event-based Markdown parser toolkit
http://metacpan.org/release/Markdent/
Other
12 stars 13 forks source link

Ordered unordered lists issue #6

Closed imago-storm closed 4 years ago

imago-storm commented 9 years ago

Hello,

I've noticed that two lists will glue together if one follows another without any divider, such as paragraph, like this:

1. First
2. Second

* I'm the next
* list element

becomes the one list

<ol>
<li>First</li>
<li>Second</li>
<li>I'm the next</li>
<li>list element</li>
</ul>

The fix seems to be quite large, but I couldn't find a better way :(

autarch commented 9 years ago

Actually, this is exactly what Markdown is supposed to do, or at least what the Daring Fireball Dingus does. I think it's a poor choice, though.

Under CommonMark this is parsed as two separate lists. I've been considering changing the Standard dialect to be CommonMark, rather than following the mdtest suite. That's a big change and a lot of work, though.