| 1 |
<?php |
| 2 |
|
| 3 |
declare( strict_types = 1 ); |
| 4 |
|
| 5 |
namespace MediaWiki\SyntaxHighlight; |
| 6 |
|
| 7 |
use Wikimedia\Parsoid\Ext\ExtensionModule; |
| 8 |
|
| 9 |
class ParsoidExt implements ExtensionModule { |
| 10 |
|
| 11 |
|
| 12 |
public function getConfig(): array { |
| 13 |
return [ |
| 14 |
'name' => 'SyntaxHighlight', |
| 15 |
'tags' => [ |
| 16 |
[ |
| 17 |
'name' => 'source', |
| 18 |
'handler' => SyntaxHighlight::class, |
| 19 |
'options' => [ |
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
'stripNowiki' => true, |
| 24 |
'hasWikitextInput' => false, |
| 25 |
] |
| 26 |
], |
| 27 |
[ |
| 28 |
'name' => 'syntaxhighlight', |
| 29 |
'handler' => SyntaxHighlight::class, |
| 30 |
'options' => [ |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
'stripNowiki' => true, |
| 35 |
'hasWikitextInput' => false, |
| 36 |
] |
| 37 |
] |
| 38 |
] |
| 39 |
]; |
| 40 |
} |
| 41 |
} |