fix markdown trailing newline issue