On 6/14/05, MHart wiki@matthart.com wrote:
Rendering wikitext is not a problem:
function renderHideShow( $input ) { global $wgParser, $wgUser, $wgTitle; $parserOptions = ParserOptions::newFromUser( $wgUser ); $parser = & new Parser(); $output = & $parser->parse($input, $wgTitle, $parserOptions);
Using Parser::parse() is simper and usually enough for most situations, unless you want to manually manipulate the title object or something like that before parsing.