Page MenuHomePhabricator

Syntax hooks are (incorrectly) parsed before template variables
Closed, DuplicatePublic

Description

Any extension hooks (in my case, the SyntaxHighlight.php extension) setup using
$wgParser->setHook() are parsed before template variables have had the chance to
be replaced.

In my case, this gets in the way of using the SyntaxHighlight.php hook for
highlighting code passed into a template. An example of this can be found at the
URL given:
http://ibaku.net/wiki/index.php/Code_Template_Example

The example uses the template found here:
http://ibaku.net/wiki/index.php/Template:Code

Let me know if other details are needed.


Version: 1.5.x
Severity: normal
OS: Linux
Platform: PC
URL: http://ibaku.net/wiki/index.php/Code_Template_Example

Details

Reference
bz5435

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 9:10 PM
bzimport set Reference to bz5435.
bzimport added a subscriber: Unknown Object (MLST).
  • This bug has been marked as a duplicate of 2257 ***