strip trailing newlines from stripped markdown