Format headers as markdown