Parsoid
A bidirectional parser between wikitext and HTML5
|
Nowiki treats anything inside it as plain text. 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 $txt, array $extArgs) | ||||||||||
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.
| ||||||||||
![]() | ||||||||||
lintHandler (ParsoidExtensionAPI $extApi, Element $rootNode, callable $defaultHandler) | ||||||||||
Lint handler for this extension. 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... | ||||||||||
Nowiki treats anything inside it as plain text.