I have written this js file. it automatically creates a table of content from h2 and h3 headings. it also adds ids to the headings. the only thing you need to do is create a div where you want to insert the table with class toc.
How to use this in blogger.
In blogger some time
<a href="#target-name"> automatically change into
xxxxxxxx is blog id
yyyyyyyyy is post id
Solution: Use HTML section instead Compose in the Blogpost for adding TOC
My friend has written codes manually instead of the plugin inside my theme. Si I am using same features without this plugin.