Parsoid
A bidirectional parser between wikitext and HTML5
Loading...
Searching...
No Matches
Wikimedia\Parsoid\ParserTests\ParserHookProcessor Class Reference

See tests/parser/ParserTestParserHook.php in core. More...

+ Inheritance diagram for Wikimedia\Parsoid\ParserTests\ParserHookProcessor:
+ Collaboration diagram for Wikimedia\Parsoid\ParserTests\ParserHookProcessor:

Public Member Functions

 staticTagPostProcessor (Node $node, stdClass $obj)
 
 wtPostprocess (ParsoidExtensionAPI $extApi, Node $node, array $options, bool $atTopLevel)
 Post-process DOM in the wt2html direction.
Parameters
ParsoidExtensionAPI$extApi
DocumentFragment | Element$rootThe root of the tree to process
array$options
bool$atTopLevelIs this processor invoked on the top level page? If false, this is being invoked in a sub-pipeline (ex: extensions)

 
- Public Member Functions inherited from Wikimedia\Parsoid\Ext\DOMProcessor
 htmlPreprocess (ParsoidExtensionAPI $extApi, Element $root)
 Pre-process DOM in the html2wt direction.
 

Detailed Description

See tests/parser/ParserTestParserHook.php in core.

Member Function Documentation

◆ staticTagPostProcessor()

Wikimedia\Parsoid\ParserTests\ParserHookProcessor::staticTagPostProcessor ( Node $node,
stdClass $obj )
Parameters
Node$node
stdClass$obj

◆ wtPostprocess()

Wikimedia\Parsoid\ParserTests\ParserHookProcessor::wtPostprocess ( ParsoidExtensionAPI $extApi,
Node $node,
array $options,
bool $atTopLevel )

Post-process DOM in the wt2html direction.

Parameters
ParsoidExtensionAPI$extApi
DocumentFragment | Element$rootThe root of the tree to process
array$options
bool$atTopLevelIs 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.


The documentation for this class was generated from the following file: