I'm using tags like
<foo> == Heading 1 == Text == Heading 2 == Text == Heading 3 == Text </foo>
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 '<div class="foo">' . $input . '</div>';
}
But then tag doesn't work and the TOC is not loaded (forcing it via __TOC__ 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]