Format sections into markdown