gfm
gfm copied to clipboard
Newlines are not handled correctly
The input x\ny
should produce the output <p>x\ny</p>
, but it instead produces <p>x<br />\ny</p>
. The inner <br />
is incorrect; a <br>
should only be inserted if the previous line ends with two spaces, per the Github and Daring Fireball markdown specs.