Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 21 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
ParsoidExt | |
0.00% |
0 / 21 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
getConfig | |
0.00% |
0 / 21 |
|
0.00% |
0 / 1 |
2 |
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 | /** @inheritDoc */ |
12 | public function getConfig(): array { |
13 | return [ |
14 | 'name' => 'SyntaxHighlight', |
15 | 'tags' => [ |
16 | [ |
17 | 'name' => 'source', |
18 | 'handler' => SyntaxHighlight::class, |
19 | 'options' => [ |
20 | // Strip nowiki markers from #tag parser-function arguments. |
21 | // This will be used to resolve T299103. |
22 | // This is primarily a b/c flag in Parsoid. |
23 | 'stripNowiki' => true, |
24 | 'hasWikitextInput' => false, |
25 | ] |
26 | ], |
27 | [ |
28 | 'name' => 'syntaxhighlight', |
29 | 'handler' => SyntaxHighlight::class, |
30 | 'options' => [ |
31 | // Strip nowiki markers from #tag parser-function arguments. |
32 | // This will be used to resolve T299103. |
33 | // This is primarily a b/c flag in Parsoid. |
34 | 'stripNowiki' => true, |
35 | 'hasWikitextInput' => false, |
36 | ] |
37 | ] |
38 | ] |
39 | ]; |
40 | } |
41 | } |