Hi,
I have an extension that needs to parse some wiki text. I started with:
$title = $parser->internalParse($title);
but found that links were not always processing correctly [[Main Page]] was
saying as that, but interestingly the first [[:image: ]] tags was parsing
$title =
$parser->parse($title,$wgTitle,ParserOptions::newFromUser($wgUser),false,false)->getText();
... however did. This is with MW 1.13.1.
However now the batch processes take forever, and the culprit is the
"->parse" - it seems to take exponentially longer to run. internalParse runs
quicker, so for the time being I have detected commandline functions and
NS_SPECIAL pages and sent it that way (as I don't really care if the pages
parse correctly or not there).
Are there any expected known limitations of internalParse? Should it always
output the same as parse or are there certain cases which will never work
with it?
Kind regards,
Alex
--
Alex Powell
Exscien Training Ltd
Tel: +44 (0) 1865 876562
Mob: +44 (0) 759 5048178
skype: alexp700
mailto:alexp@exscien.com
http://www.exscien.com
Registered in England and Wales 05927635, Unit 10 Wheatley Business Centre,
Old London Road, Wheatley, OX33 1XW, England