Parsoid
A bidirectional parser between wikitext and HTML5
|
Public Member Functions | ||||||||||
sourceToDom (ParsoidExtensionAPI $extApi, string $content, array $args) | ||||||||||
Convert an extension tag's content to DOM.
| ||||||||||
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.
| ||||||||||
![]() | ||||||||||
lintHandler (ParsoidExtensionAPI $extApi, Element $rootNode, callable $defaultHandler) | ||||||||||
Lint handler for this extension. More... | ||||||||||
domToWikitext (ParsoidExtensionAPI $extApi, Element $node, bool $wrapperUnmodified) | ||||||||||
Serialize a DOM node created by this extension to wikitext. More... | ||||||||||
modifyArgDict (ParsoidExtensionAPI $extApi, object $argDict) | ||||||||||
Some extensions require the ability to modify the argument dictionary. More... | ||||||||||
diffHandler (ParsoidExtensionAPI $extApi, callable $domDiff, Element $origNode, Element $editedNode) | ||||||||||
XXX: Experimental. More... | ||||||||||