Parsoid
A bidirectional parser between wikitext and HTML5
|
wt -> html DOM PostProcessor More...
Public Member Functions | |||||||||||||
wtPostprocess (ParsoidExtensionAPI $extApi, Node $node, array $options, bool $atTopLevel) | |||||||||||||
Post-process DOM in the wt2html direction.
| |||||||||||||
htmlPreprocess (ParsoidExtensionAPI $extApi, Element $root) | |||||||||||||
html -> wt DOM PreProcessor | |||||||||||||
wt -> html DOM PostProcessor
Wikimedia\Parsoid\Ext\Cite\RefProcessor::htmlPreprocess | ( | ParsoidExtensionAPI | $extApi, |
Element | $root ) |
html -> wt DOM PreProcessor
Nothing to do right now.
But, for example, as part of some future functionality, this could be used to reconstitute page-level information from local annotations left behind by editing clients.
ParsoidExtensionAPI | $extApi | |
Element | $root |
Reimplemented from Wikimedia\Parsoid\Ext\DOMProcessor.
Wikimedia\Parsoid\Ext\Cite\RefProcessor::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.