Thread:Project:Support desk/Tag hook: recursiveTagParse() - TOC not loaded

I'm using tags like

Heading 1
Text

Heading 2
Text

Heading 3
Text To create a div around the content: function efMoreMarkup( &$parser ) { $parser->setHook( 'foo', 'efFoo' ); return true; } function efFoo( $input, $args , $parser )	{ $input = $parser-> recursiveTagParse( $input ); return ' '. $input. ' '; }

But then tag doesn't work and the TOC is not loaded (forcing it via  doesn't help). Is there a solution to it so the tag doesn't need to be set below each heading? [MW 1.18.0]