Thread:Project:Support desk/need Help about Handler MathJax

the syntax of the parser_init of MathJax is a following :

static function ParserInit(Parser $parser) {   $parser->setHook('nomathjax', 'MathJax_Parser::Render_NoMathJax'); $parser->setHook('code',     'MathJax_Parser::Render_Code'); global $wgHooks; $wgHooks['ParserBeforeInternalParse'][] = 'MathJax_Parser::Stage1'; $wgHooks['InternalParseBeforeLinks'][] = 'MathJax_Parser::Stage2'; $wgHooks['BeforePageDisplay'][] = 'MathJax_Parser::Inject_JS'; // Inject MathJax and MathJax configuration return true; } My procedures : TEST1 when I show preview before save : the display is right : the 3 functions "stage 1", "stage2", and "Inject_Js" are executed in this order
 * I write a formula as $\sqrt(x+y)$ on one page "Test" (not Accueil page !)
 * I clic on Save Page : always OK
 * Now I request the wiewing of another page
 * Then I return to my Test page => the display is not OK because the "stage1" and "stage2" are not re-execute before the Inject_JS so this one exit without loading the javascript into the html page

TEST2 In my trace log I see the execution of the 2 functions stage1, stage2, and the function Inject_Js is executed at each times even if I go to another page then return to accueil
 * I perform the same test as the test1 but instead to use the Test page I write my formula on the Accueil page: The display is always OK.

TEST3
 * I perform again the TEST 1 but connected as wikisysop : the display is always OK because in this case : The 2 functions stage1 and stage 2 are always executed before the inject_JS execution

I don't understand why the 2 handlers : ParserBeforeInternalParse and InternalParseBeforeLinks doesn't work in the same way in the three tests