=== Protos TOC Generator ===
Contributors: Protos Software
Tags: toc, table of contents, seo, navigation, headings
Requires at least: 5.0
Tested up to: 6.9
Stable tag: 2.9
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Auto-generates a floating or inline table of contents with anchor links based on headings in your post. Improves readability and SEO.

== Description ==

**Protos TOC Generator** automatically creates a Table of Contents for your posts and pages by scanning for heading tags (`<h1>` to `<h6>`). It adds anchor links for smooth navigation within long articles.

Features:
- Automatically injects a TOC before the first heading
- Smooth scrolling to heading sections
- Supports heading levels h1 to h6
- SEO-friendly anchor links
- Easy styling and customization
- Lightweight and no settings page

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory.
2. Activate the plugin through the ‘Plugins’ menu in WordPress.
3. Visit any post with headings — the TOC appears before the first heading.

== Frequently Asked Questions ==

= Can I disable TOC for specific posts? =
Not in this version. Let us know if you need this feature!

= Can I customize where the TOC appears? =
By default, it appears before the first heading. A shortcode version is coming soon.

= Will this work with any theme? =
Yes, it works with all standard themes and heading structures.

== Screenshots ==

1. Table of contents automatically inserted before the first heading.
2. Smooth scrolling behavior on anchor clicks.

== Changelog ==

= 1.1 =
* Added smooth scrolling JavaScript
* Replaced `strip_tags()` with `wp_strip_all_tags()`
* Cleaned code for better WordPress compliance

= 1.0 =
* Initial release – auto TOC based on heading tags

== Upgrade Notice ==

= 1.1 =
Use this version to support smooth scrolling and safer tag stripping.

== License ==

This plugin is licensed under the GPLv2 or later.

== Screenshots ==

1. Admin view for configurations
2. Table of Content view


