tristanjuricek / knockoff

A Markdown parser + object model in scala
http://tristanjuricek.github.com/knockoff
BSD 3-Clause "New" or "Revised" License
102 stars 17 forks source link

There are unnecessary linebreaks before closing tags #44

Open takahisa opened 9 years ago

takahisa commented 9 years ago

When I convert such as the following markdown document to HTML.

- item1
- item2

I had expected the results shown in (A), but the actual output like shown in (B).

(A)
<li>item1</li><li>item2</li>

(B)
<li>item1
</li><li>item2
</li>

Is this the correct behavior? I want to send a pull request about that removing this line breaks. Is it OK?

tristanjuricek commented 9 years ago

In some random cases, I tried to maintain consistency with the original Markdown.rb script, which had a lot of quirks like this. I'm not sure this is exactly one of those quirks, but it might have been. But I also don't really like the weird behaviors of the original script, though.

Feel free to send the pull request.