A hook used to generate a table of contents based on the page content
Generate a table of contents using the content of the page.