Parsoid
A bidirectional parser between wikitext and HTML5
|
See tests/parser/ParserTestParserHook.php in core. More...
Public Member Functions | |||||||||||||
staticTagPostProcessor (Node $node, stdClass $obj) | |||||||||||||
wtPostprocess (ParsoidExtensionAPI $extApi, Node $node, array $options, bool $atTopLevel) | |||||||||||||
Post-process DOM in the wt2html direction.
| |||||||||||||
Public Member Functions inherited from Wikimedia\Parsoid\Ext\DOMProcessor | |||||||||||||
htmlPreprocess (ParsoidExtensionAPI $extApi, Element $root) | |||||||||||||
Pre-process DOM in the html2wt direction. | |||||||||||||
See tests/parser/ParserTestParserHook.php in core.
Wikimedia\Parsoid\ParserTests\ParserHookProcessor::staticTagPostProcessor | ( | Node | $node, |
stdClass | $obj ) |
Node | $node | |
stdClass | $obj |
Wikimedia\Parsoid\ParserTests\ParserHookProcessor::wtPostprocess | ( | ParsoidExtensionAPI | $extApi, |
Node | $node, | ||
array | $options, | ||
bool | $atTopLevel ) |
Post-process DOM in the wt2html direction.
ParsoidExtensionAPI | $extApi | |
DocumentFragment | Element | $root | The root of the tree to process |
array | $options | |
bool | $atTopLevel | Is this processor invoked on the top level page? If false, this is being invoked in a sub-pipeline (ex: extensions) |
Reimplemented from Wikimedia\Parsoid\Ext\DOMProcessor.