=== SimpleTOC - Table of Contents Block === Contributors: MarcDK Tags: AMP, Gutenberg, block, TOC, Table of Contents Requires at least: 5.0 Donate link: https://marc.tv/out/donate Tested up to: 5.6 Stable tag: 4.2 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html Adds a custom "table of contents" Gutenberg block. == Description == In Gutenberg, add a block and search for "SimpleTOC" or just "TOC". You need to save your post before you add the block. It works by parsing the post content and retrieving the heading blocks and creates a new dynamic block with a list of links to the headings. = Features = * Designed for Gutenberg. * Compatible with AMP plugins. * Minimal and valid HTML output. * Inherits the style of your theme. * Control the maximum depth of the headings. * SEO friendly: Disable the h2 heading of the TOC block and add your own. * No javascript or css added. * Comes with English, French, Spanish, German, and Brazilian Portuguese translations. * Rank Math support. This plugin is forked from https://github.com/pdewouters/gutentoc by pdewouters and uses code from https://github.com/shazahm1/Easy-Table-of-Contents by shazahm1 Many thanks to Tom J Nowell https://tomjn.com and and Sally CJ who both helped me a lot with my questions over at wordpress.stackexchange.com == Changelog == = 4.2 = * Fix: HTML entites are properly decoded before anchor attribute is added. This removes encoding problems and questionmark characters in headlines. = 4.1.1 = * Feature: Experimental support for Arabic Text. = 4.0 = * Added option to set maximum level of the headings. = 3.9 = * Option to disable block heading added. * Enhanced the localization strings. * Added Brazilian Portuguese translations to the translations. Thanks Ralden Souza! = 3.5 = * Added support for Rank Math plugin. == Installation == SimpleTOC can be found and installed via the Plugin menu within WordPress administration (Plugins -> Add New). Alternatively, it can be downloaded from WordPress.org and installed manually... In Gutenberg, add a block and search for "SimpleTOC" or just "TOC". Please save your content before you use the block. ## Screenshots ## 1. SimpleTOC block in Gutenberg editor. 2. SimpleTOC in the post. 3. Disable "Table of contents" block headings“. 4. Control the maximum depth of the headings.