Parsoid
A bidirectional parser between wikitext and HTML5
|
wt2html DOM processor used to implement some DOM functionality (ex: DSR computation, template wrapping, etc.) More...
Public Member Functions | |
run (Env $env, Node $root, array $options=[], bool $atTopLevel=false) | |
wt2html DOM processor used to implement some DOM functionality (ex: DSR computation, template wrapping, etc.)
Wikimedia\Parsoid\Wt2Html\Wt2HtmlDOMProcessor::run | ( | Env | $env, |
Node | $root, | ||
array | $options = [], | ||
bool | $atTopLevel = false ) |
Env | $env | |
Element | DocumentFragment | $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) |
Implemented in Wikimedia\Parsoid\Wt2Html\PP\Processors\AddLinkAttributes, Wikimedia\Parsoid\Wt2Html\PP\Processors\AddMediaInfo, Wikimedia\Parsoid\Wt2Html\PP\Processors\AddRedLinks, Wikimedia\Parsoid\Wt2Html\PP\Processors\ComputeDSR, Wikimedia\Parsoid\Wt2Html\PP\Processors\ConvertOffsets, Wikimedia\Parsoid\Wt2Html\PP\Processors\I18n, Wikimedia\Parsoid\Wt2Html\PP\Processors\LangConverter, Wikimedia\Parsoid\Wt2Html\PP\Processors\Linter, Wikimedia\Parsoid\Wt2Html\PP\Processors\MarkFosteredContent, Wikimedia\Parsoid\Wt2Html\PP\Processors\MigrateTemplateMarkerMetas, Wikimedia\Parsoid\Wt2Html\PP\Processors\MigrateTrailingNLs, Wikimedia\Parsoid\Wt2Html\PP\Processors\Normalize, Wikimedia\Parsoid\Wt2Html\PP\Processors\ProcessTreeBuilderFixups, Wikimedia\Parsoid\Wt2Html\PP\Processors\PWrap, Wikimedia\Parsoid\Wt2Html\PP\Processors\WrapAnnotations, Wikimedia\Parsoid\Wt2Html\PP\Processors\WrapSections, Wikimedia\Parsoid\Wt2Html\PP\Processors\WrapTemplates, and Wikimedia\Parsoid\Wt2Html\DOMPPTraverser.