Page MenuHomeWickedGov Phorge

ParsoidExt.php
No OneTemporary

Size
975 B
Referenced Files
None
Subscribers
None

ParsoidExt.php

<?php
declare( strict_types = 1 );
namespace MediaWiki\SyntaxHighlight;
use Wikimedia\Parsoid\Ext\ExtensionModule;
class ParsoidExt implements ExtensionModule {
/** @inheritDoc */
public function getConfig(): array {
return [
'name' => 'SyntaxHighlight',
'tags' => [
[
'name' => 'source',
'handler' => SyntaxHighlight::class,
'options' => [
// Strip nowiki markers from #tag parser-function arguments.
// This will be used to resolve T299103.
// This is primarily a b/c flag in Parsoid.
'stripNowiki' => true,
'hasWikitextInput' => false,
]
],
[
'name' => 'syntaxhighlight',
'handler' => SyntaxHighlight::class,
'options' => [
// Strip nowiki markers from #tag parser-function arguments.
// This will be used to resolve T299103.
// This is primarily a b/c flag in Parsoid.
'stripNowiki' => true,
'hasWikitextInput' => false,
]
]
]
];
}
}

File Metadata

Mime Type
text/x-php
Expires
Sat, May 16, 16:19 (13 h, 42 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f2/4e/844a5a126e79f955672052a57387
Default Alt Text
ParsoidExt.php (975 B)

Event Timeline