Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\Ext\ExtensionModule Interface Reference

A Parsoid native extension module. More...

+ Inheritance diagram for Wikimedia\Parsoid\Ext\ExtensionModule:

Public Member Functions

 getConfig ()
 Return information about this extension module.
 

Detailed Description

A Parsoid native extension module.

This bundles up the configuration for a number of different ExtensionTagHandlers, ContentModelHandlers, and DomProcessors into one registered object. The only method required is getConfig.

FIXME: This might be created on-demand by configuration data specified in extension.json.

Member Function Documentation

◆ getConfig()

Wikimedia\Parsoid\Ext\ExtensionModule::getConfig ( )

Return information about this extension module.

FIXME: Add more expected fields or create a class for this FIXME: The 'name' is expected to be the same as the name defined at the top level of extension.json.

Returns
array{name:string}

Implemented in Wikimedia\Parsoid\Ext\Gallery\Gallery, Wikimedia\Parsoid\Ext\Indicator\Indicator, Wikimedia\Parsoid\Ext\JSON\JSON, Wikimedia\Parsoid\Ext\LST\LST, Wikimedia\Parsoid\Ext\Nowiki\Nowiki, Wikimedia\Parsoid\Ext\Pre\Pre, Wikimedia\Parsoid\ParserTests\DummyAnnotation, Wikimedia\Parsoid\ParserTests\I18nTag, Wikimedia\Parsoid\ParserTests\ParserHook, Wikimedia\Parsoid\ParserTests\RawHTML, and Wikimedia\Parsoid\ParserTests\StyleTag.


The documentation for this interface was generated from the following file: