Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/beapi/blockparty-table-of-content/archive/refs/heads/develop.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Table of content block for WordPress
This plugin adds a block to the WordPress block editor that allows you to add a table of content to your posts and pages.


For developers
Allow more blocks to be included in the Table of content
By default, the Paragraph block get a custom setting to be included in the Table of content (Advanced > Table of content).
Use the toc_third_blocks_included filter to allow more blocks :
add_filter( 'toc_third_blocks_included', 'custom_toc_third_blocks_included', 10, 1 );
function custom_toc_third_blocks_included( $blocks ) {
$blocks[] = 'core/button';
return $blocks;
}