| @@ -2,9 +2,9 @@ | ||
| 2 | 2 | Contributors: MarcDK |
| 3 | 3 | Tags: TOC, Table of Contents, Block, Accessibility, Table |
| 4 | 4 | Requires at least: 6.2 |
| 5 | 5 | Tested up to: 7.1 |
| 6 | -Stable tag: 7.4.0 | |
| 6 | +Stable tag: 7.4.1 | |
| 7 | 7 | Requires PHP: 7.3 |
| 8 | 8 | License: GPLv2 or later |
| 9 | 9 | License URI: http://www.gnu.org/licenses/gpl-2.0.html |
| 10 | 10 | Donate link: https://marc.tv/out/donate |
| @@ -79,10 +79,10 @@ | ||
| 79 | 79 | |
| 80 | 80 | SimpleTOC is open-source and developed on [GitHub Pages](https://github.com/mtoensing/SimpleTOC). If you find a bug or have an idea for a feature please feel free to contribute and create a pull request. |
| 81 | 81 | |
| 82 | 82 | == Changelog == |
| 83 | -= 7.4.0 = | |
| 84 | -* Added: Optional CSS-only scroll spy to underline the current section link in supporting browsers. Enable Highlight current section in the block settings or enforce it globally under Settings > SimpleTOC. No JavaScript or polyfill is added. | |
| 83 | += 7.4.1 = | |
| 84 | +* Fixed: Headings inside Query Loop blocks (core/query, GenerateBlocks) no longer receive duplicate anchor IDs from the surrounding page and are no longer listed in the table of contents. Fixes issue #90. | |
| 85 | 85 | |
| 86 | 86 | == Installation == |
| 87 | 87 | |
| 88 | 88 | 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... |
| @@ -154,9 +154,9 @@ | ||
| 154 | 154 | Replace the example values with your theme's values or preset variables. Selecting the Box style adds the standard `is-style-boxed` class. |
| 155 | 155 | |
| 156 | 156 | = How to allow developers to exclude specific headings programmatically? = |
| 157 | 157 | |
| 158 | -Use the 'simpletoc_excluded_blocks' filter. For example, this code will exclude heading blocks that are inside a column block. | |
| 158 | +Query Loop blocks (core/query, generateblocks/query-loop, generateblocks/query) are always excluded, because their headings repeat for every post. Use the 'simpletoc_excluded_blocks' filter to exclude more blocks. For example, this code will exclude heading blocks that are inside a column block. | |
| 159 | 159 | |
| 160 | 160 | Example: |
| 161 | 161 | |
| 162 | 162 | add_filter( 'simpletoc_excluded_blocks', function ( array $blocks ) { |