Code Coverage |
||||||||||
Classes and Traits |
Functions and Methods |
Lines |
||||||||
Total | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
Cite | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
getConfig | |
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
<?php | |
declare( strict_types = 1 ); | |
namespace Wikimedia\Parsoid\Ext\Cite; | |
use Wikimedia\Parsoid\Ext\ExtensionModule; | |
/** | |
* Native Parsoid implementation of the Cite extension | |
* that ties together `<ref>` and `<references>`. | |
*/ | |
class Cite implements ExtensionModule { | |
/** @inheritDoc */ | |
public function getConfig(): array { | |
return [ | |
'name' => 'Cite', | |
'domProcessors' => [ | |
RefProcessor::class, | |
], | |
'tags' => [ | |
[ | |
'name' => 'ref', | |
'handler' => Ref::class, | |
'options' => [ | |
'wt2html' => [ 'unpackOutput' => false ] | |
], | |
], | |
[ | |
'name' => 'references', | |
'handler' => References::class, | |
'options' => [ | |
'html2wt' => [ 'format' => 'block' ] | |
], | |
] | |
], | |
]; | |
} | |
} |