Automatically generate table of contents for a given area of content.