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, FragmentHandlers, and DomProcessors into one registered object. The only method required is getConfig.

An ExtensionModule can be created on-demand from configuration data specified in extension.json; see SiteConfig::registerExtensionModule() and https://www.mediawiki.org/wiki/Manual:Extension.json/Schema#ParsoidModules

Implementing an ExtensionModule should only be done by Parsoid-internal extensions. If you are implementing a Parsoid module in an extension and have an extension.json, you should use that to specify your module configuration.

Member Function Documentation

◆ getConfig()


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