mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/SyntaxHighlight_GeSHi
synced 2024-11-15 02:24:07 +00:00
* bug (18820) Cannot parse source code containing <source>
-> Added alternative tag <syntaxhighlight>
This commit is contained in:
parent
72521f6b30
commit
ba99b4641f
|
@ -67,5 +67,6 @@ if ( defined( 'MW_SUPPORTS_PARSERFIRSTCALLINIT' ) ) {
|
|||
function efSyntaxHighlight_GeSHiSetup() {
|
||||
global $wgParser;
|
||||
$wgParser->setHook( 'source', array( 'SyntaxHighlight_GeSHi', 'parserHook' ) );
|
||||
$wgParser->setHook( 'syntaxhighlight', array( 'SyntaxHighlight_GeSHi', 'parserHook' ) );
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue