coreyworrell/php-markdown — comment on commit 4a48b4648ce2066c755775ed74c0ed93f1433c89
File: markdown.php line 2585
By coreyworrell:

Hmm, it must be related to what I'm using for my website then. I'm using Kohana with Mustache templates, and you can see what is happening here: http://dev.coreyworrell.com/first-article

And converting newlines to `
`s solved it. But maybe that's not the best solution.