capture all headings, so that we can build the TOC