Move headings into markdown