kzykhys / Ciconia

A New Markdown parser for PHP5.4
http://ciconia.kzykhys.com/
MIT License
355 stars 31 forks source link

GFM whitespace extension creates too many <br> tags #59

Open mindplay-dk opened 8 years ago

mindplay-dk commented 8 years ago

I'm not 100% sure how it should work, but I've been rendering this document with Ciconia, and the whitespace behavior is inconsistent with that of GitHub.

Look at the leading paragraph, which ends in the words, "with a gentle learning curve" - there's an extra line break inserted there.

Then look at the source document - there is a line-break before those words, but it doesn't render as a <br> on GitHub.

If I comment out $engine->addExtension(new Gfm\WhiteSpaceExtension()), it looks more like GitHub.

What gives?