Module: wt2html/pp/processors/migrateTemplateMarkerMetas

Methods

(inner) migrateTemplateMarkerMetas(node, env)

This will move the start/end-meta closest to the content that the template/extension produced and improve accuracy of finding dom ranges and wrapping templates.

This will move the start/end-meta closest to the content that the template/extension produced and improve accuracy of finding dom ranges and wrapping templates.

If the last child of a node is a start-meta, move it up and make it the parent's right sibling.

If the first child of a node is an end-meta, move it up and make it the parent's left sibling.

Parameters:
Name Type Description
node Node
env MWParserEnvironment
Source: