Convert list items to structured headings.