== Changelog ==

= 6.6.1 = 
* Added: Initialize the JavaScript for the TOC accordion on page load or after the document has fully loaded. Thanks blronaldhuereca https://github.com/mtoensing/simpletoc/pull/63 

= 6.6.0 =
* Added: Tested compatibility with WordPress 6.7

= 6.5.6 =
* Fixed: All script versions have been updated to prevent caching issues.
* Fixed: Legacy Accordion was always expanded. Thanks Francesco Palmieri.
* Added: Updated dependencies for improved performance and stability.​
* Added: Tested compatibility with WordPress 6.6

= 6.4.3 =
* Added: A pointer cursor on hover for the hidden TOC

= 6.4.3 =
* Added: Utilizes the browser's built-in details tag for a collapsible interface. Thanks @infinitnet
* Compatibility with WordPress 6.5
* Fixed: Minor localization problems.   

= 6.3.2 =
* Fixed: Option for automatic refresh did not work in some instances.

= 6.3.0 =
* Added: Option for automatic refresh. This can be disabled in the blocks advanced settings.
* Added: Option to globally disable automatic refresh in the WordPress SimpleTOC settings.

= 6.2.0 =
* Added: Implemented smooth animation for improved user interaction in the accordion menu.
* Added: Upgraded styling of the accordion menu for a more visually appealing and modern user experience.

= 6.1.0 =
* Fixed: Broken markup when tags closed for headers below minimum. Thanks @harmoney !

= 6.0.10 =
* Added aria-hidden attribute to icon in accordion. Thanks Alex Stine!

= 6.0.9 =
* Added ARIA accessibility labels for the accordion. Thanks Amber Hinds!
* Fixed: Caching of accordion JavaScript. Thanks jghitchcock!
* Added correct ARIA controls attribute.

= 6.0.4 =
* Fix: specific min/max values for could result in merged headlines.

= 6.0.2 =
* Fix: "Update failed" with error 500 when Rank Math is installed. 

= 6.0.0 =
* Feature: Added SimpleTOC global settings to override individual block configuration. 
* Fix: Better output with well-formed HTML and consistent double quotation marks.
* Fix: Refactored php code using GPT-4.

= 5.0.56 =
* Feature: Optional div wrapper with role=navigation and ARIA attributes. 
* Fix: Removed deprecated php function 'utf8_decode'.

= 5.0.55 = 
* Feature: Better smooth-scrolling support. Thanks Clarus Dignus!

= 5.0.53 = 
* Fix: Prevent direct access to plugin files. Thanks rafaucau!

= 5.0.52 =
* Fix: wp_set_script_translations undefined in older WordPress installations.

= 5.0.51 =
* Fix: Accordion menu CSS alignment.  

= 5.0.50 =
* Fix: Identifier 'i' has already been declared
* Fix: SimpleTOC will not nag the user about changed content in the editor anymore. Therefore I removed the corresponding option from the settings.
* Fix: Minor changes to accordion css.

= 5.0.45 =
* Feature: Option to render SimpleTOC heading as paragraph.
* Fix: Added margin to the bottom of the accordion menu.

= 5.0.43 =
* Compatibility with WordPress 6.1
* Feature: Hide SimpleTOC in an accordion menu. Adds minimal JavaScript and css styles if enabled.
* Feature: Option to change SimpleTOC block heading level.
* Fix: Accordion menu can now be added multiple times.
* Fix: Accordion styling in Gutenberg editor.
* Fix: Minor accordion styling fixes.
* Fix: Added JavaScript and CSS for the accordion menu by using standard methods.

= 5.0.36 =
* Feature: [Spin up](https://demo.tastewp.com/simpletoc) a new WordPress instance with the SimpleTOC plugin already installed.
* Fix: Better handling for `simpletoc-hidden` class to hide headings. Thank you blronaldhuereca!

= 5.0.34 =
* Feature: Moved list controls to toolbar and rearranged settings to fit block order.
* Feature: Filter for developers to wrap toc with a div tag. Thank you rafaucau!
* Fix: Minor localization tweaks. 

= 5.0.31 =
* Feature: Filter for developers to exclude specific blocks. See faq for details. Thanks rafaucau!
* Feature: Easier development with @wordpress/env to start a dev environment. Thanks rafaucau!

= 5.0.28 =
* Feature: Change the TOC headline in the block options. Thank you Philipp Stracker!

= 5.0.17 =
* Feature: Support for custom Anchor IDs in headings. Thank you Matthias Altmann!