fix markdown output for lists containing paragraphs