Extension talk:JsMath


 * Most of cases show perfect math redering with jsMath (many thanks). But, when a page is transcluded to another page by the tag  , math formulas in the translcuded page are rendered not with jsMath but with texvc png. How can I correct it? --203.254.163.30 07:47, 3 February 2008 (UTC) (Seongchong)


 * You're right. The way I see it, the problem has to do with how the mediawiki parser strips the   tag (i.e., the point where the parser renders  $$...$$  and replaces the formula with a marker that points to the rendered formula). The parser normally strips tags (like    and    ) by the following sequence of lines:


 * and then it is easy for the JsMath extension to grab any   tags by using the hook ParserBeforeStrip and convert any math formulas before the math renderer is called (inside the strip command). Now, the problem is that at some points in the parser (e.g., template expansion) the stripping is done with the line


 * (without the hooks involved) and therefore these  </tt> tags will not get caught by this extension. I can't really see why the parser would call the strip command without also calling the hooks. Hmm, I will think some more on this and see if there is a (simple) way to work around this problem. &mdash; Tommy Ekola 13:53, 3 February 2008 (UTC)