Parsoid
A bidirectional parser between wikitext and HTML5
|
Implements the php parser's renderImageGallery
natively.
More...
Public Member Functions | |||||||||||||
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.
| |||||||||||||
sourceToDom (ParsoidExtensionAPI $extApi, string $content, array $args) | |||||||||||||
Convert an extension tag's content to DOM.
| |||||||||||||
domToWikitext (ParsoidExtensionAPI $extApi, Element $node, bool $wrapperUnmodified) | |||||||||||||
Serialize a DOM node created by this extension to wikitext.
| |||||||||||||
modifyArgDict (ParsoidExtensionAPI $extApi, object $argDict) | |||||||||||||
Some extensions require the ability to modify the argument dictionary.
| |||||||||||||
diffHandler (ParsoidExtensionAPI $extApi, callable $domDiff, Element $origNode, Element $editedNode) | |||||||||||||
XXX: Experimental.Call $domDiff on corresponding substrees of $origNode and $editedNode
| |||||||||||||
![]() | |||||||||||||
lintHandler (ParsoidExtensionAPI $extApi, Element $rootNode, callable $defaultHandler) | |||||||||||||
Lint handler for this extension. More... | |||||||||||||
Implements the php parser's renderImageGallery
natively.
Params to support (on the extension tag):
A proposed spec is at: https://phabricator.wikimedia.org/P2506