Allow running code during unstrip
authorJackmcbarn <jackmcbarn@users.noreply.github.com>
Fri, 19 Dec 2014 07:05:44 +0000 (02:05 -0500)
committerTim Starling <tstarling@wikimedia.org>
Wed, 13 May 2015 02:44:20 +0000 (02:44 +0000)
commit62c3fe221f4975e7cab4da130ea7ac4784d3eb6a
tree2de4a76b7549c575ea406c5211306303b279a225
parentc8f4c4e0accfeabb5d2fa6d3764a8d1026fe6d16
Allow running code during unstrip

When adding strip markers, allow closures to be passed in place of text.
The closure is then called during unstrip. Also, add a hook that runs
after unstripGeneral. This is needed for Extension:Cite's I0e136f952.

Change-Id: If83b0623671fd67e5ccc9deaaaab456a6679af8f
docs/hooks.txt
includes/parser/Parser.php
includes/parser/StripState.php