create table of contents according h1 to h6