
![Add the <code>[toc]</code> shortcode to any post/page/custom-post-type, at any position in the content.](https://ps.w.org/shortcode-toc/assets/screenshot-1.png?rev=1779328)
Add the <code>[toc]</code> shortcode to any post/page/custom-post-type, at any position in the content.
Simply use the [toc content=".your-container"] shortcode to automatically generate a table of contents for any HTML container.
The shortcode accepts a number of parameters:
content string requiredheaders stringspeed intanchor-class stringanchor-text stringtop_class stringspy true/falseposition append/prependspy-offset int