Parsoid
A bidirectional parser between wikitext and HTML5
|
Dummy annotation to test the annotation mechanisms outside of any extension-specific considerations. More...
Public Member Functions | |
getConfig () | |
Return information about this extension module.The structure of the return value is enforced by moduleconfig.schema.json , in this directory.
| |
![]() | |
sourceToDom (ParsoidExtensionAPI $extApi, string $content, array $args) | |
Convert an extension tag's content to "prepared and loaded" DOM. | |
processAttributeEmbeddedHTML (ParsoidExtensionAPI $extApi, Element $elt, Closure $proc) | |
Extensions might embed HTML in attributes in their own custom representation (whether in data-mw or elsewhere). | |
processAttributeEmbeddedDom (ParsoidExtensionAPI $extApi, Element $elt, callable $proc) | |
Extensions might embed HTML in attributes in their own custom representation (whether in data-mw or elsewhere). | |
lintHandler (ParsoidExtensionAPI $extApi, Element $rootNode, callable $defaultHandler) | |
Lint handler for this extension. | |
domToWikitext (ParsoidExtensionAPI $extApi, Element $node, bool $wrapperUnmodified) | |
Serialize a DOM node created by this extension to wikitext. | |
diffHandler (ParsoidExtensionAPI $extApi, callable $domDiff, Element $origNode, Element $editedNode) | |
XXX: Experimental. | |
Dummy annotation to test the annotation mechanisms outside of any extension-specific considerations.
Wikimedia\Parsoid\ParserTests\DummyAnnotation::getConfig | ( | ) |
Return information about this extension module.The structure of the return value is enforced by moduleconfig.schema.json
, in this directory.
Implements Wikimedia\Parsoid\Ext\ExtensionModule.