This fixes an extra blank line we were getting at the end of markdown fragments (as well as rst, org, etc.) Closes #1705.