Fixed the parsing of GitHub-style code blocks

These code listings no longer add an empty new line at the end.