/** * Callback function for converting source to HTML output */ function renderSourceData($input, $argv, $parser) { $source = new Source($parser->getTitle()->getText()); return $source->renderData($input, $parser); }