wrappers as necessary. * Implements the algorithm documented @ mw:Parsing/Notes/Section_Wrapping * * @inheritDoc */ public function run( Env $env, Node $root, array $options = [], bool $atTopLevel = false ): void { if ( !$env->getWrapSections() ) { return; } $state = new WrapSectionsState( $env, $options['frame'], $root ); $state->run(); } }