Go to the documentation of this file.
25 $obj =
new self( $text );
27 return $obj->execute();
37 $text = str_replace( [
'<',
'{{',
'[[',
'__',
"\r" ],
38 [
'<',
'{{',
'[[',
'__',
'' ], $text );
42 $text = preg_replace(
"/\n([\\*#\t])([^\n]*?)\n([^\n#\\*:]+)/",
"\n\\1\\2 \\3", $text );
43 }
while ( $text != $prev );
45 $text = preg_replace(
'/^\t\t/m',
'::', $text );
46 $text = preg_replace(
'/^\t/m',
':', $text );
48 $linkStart =
'<span class="config-plainlink">[';
49 $linkEnd =
' $0]</span>';
54 "{$linkStart}https://phabricator.wikimedia.org/$0{$linkEnd}",
61 "{$linkStart}https://bugzilla.wikimedia.org/$1{$linkEnd}",
68 "{$linkStart}https://www.mediawiki.org/wiki/Manual:$0{$linkEnd}",