Introduce ContentGetParserOutput hook
authordaniel <daniel.kinzler@wikimedia.de>
Tue, 16 Oct 2012 10:38:20 +0000 (12:38 +0200)
committerDerk-Jan Hartman <hartman.wiki@gmail.com>
Sat, 10 May 2014 12:27:33 +0000 (14:27 +0200)
commit48d5e5b3c910b50b980a8902511b1c18f2233906
tree140a231da753d9cbaec439c97ce6230af27b7aa6
parent5fea642f16cefb08d32d69013b2bc845670f2486
Introduce ContentGetParserOutput hook

This hooks allows extensions to override the normal model-specific
rendering of page content. A typical use would be to provide syntax
highlighting for pages that contain scripts. In that sense,
ContentGetParserOutput is a generalization of the old ShowRawCssJs
hook.

This, together with I76412f9d, is a (hopefully) fixed version of the
reverted Ibfb2cbefea44.

Change-Id: I979e2438689648ba4c959d8083197ef14ce524e8
docs/hooks.txt
includes/Article.php
includes/content/AbstractContent.php
includes/content/TextContent.php
includes/content/WikitextContent.php
tests/phpunit/includes/content/ContentHandlerTest.php
tests/phpunit/includes/content/CssContentTest.php
tests/phpunit/includes/content/TextContentTest.php