put headings and list into Markdown