We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3dc7ff3 commit 4eebe7aCopy full SHA for 4eebe7a
1 file changed
plugin.php
@@ -159,14 +159,14 @@ function simpletoc_add_ids_to_content( $content ) {
159
160
$content = add_ids_to_blocks( $content );
161
162
+ $content = simpletoc_render_toc( $content );
163
+
164
return $content;
165
}
166
167
// Run late, but before toc is rendered as to be able to track and add IDs to the headings.
168
add_filter( 'the_content', __NAMESPACE__ . '\simpletoc_add_ids_to_content', 100 );
169
-add_filter( 'the_content', __NAMESPACE__ . '\simpletoc_render_toc', 101 );
-
170
/**
171
* Renders the Table of Contents block.
172
*
0 commit comments