This should fix the presence of extraneous newlines in markdown output.
Related: https://github.com/pragdave/earmark/issues/406