Hey,
I have a custom action in which I construct HTML to display by rendering some user provided wikitext and some grammatically build chunks of HTML. It looks like this:
$html = 'some html';
$html .= $this->getOutput()->parse( 'wiki text' );
$html .= 'more html';
$html .= 'even more html';
These last two segments of HTML start with a h2, which I would like to show up in the same TOC as rendered by the parsed wiki text. I tried some things but did not find a way to make this work, so I'm looking for some pointers.
Note: this HTML construction is happening inside a function that should return HTML and not have side effects (so its result can be cached). It is thus not possible to do anything in the direction of $this->getOutput()->addHTML().
Cheers
-- Jeroen De Dauw http://www.bn2vs.com Don't panic. Don't be evil. --
wikitech-l@lists.wikimedia.org