Creates a table of contents that is compatible with publish i.e. that if the page is pushed to publish the table of contents will still be there.