Wikimedia\Rdbms\LBFactory.
* The MimeMagic class, deprecated since 1.28 has been removed. Get a
MimeAnalyzer instance from MediaWikiServices instead.
+* The '--tidy' option to maintenance/parse.php has been removed. Tidying
+ the output is now the default. Use '--no-tidy' to bypass the tidy
+ phase.
=== Deprecations in 1.32 ===
* HTMLForm::setSubmitProgressive() is deprecated. No need to call it. Submit
false,
true
);
- $this->addOption( 'tidy', 'Tidy the output' );
+ $this->addOption( 'no-tidy', 'Don\'t tidy the output (deprecated)' );
$this->addArg( 'file', 'File containing wikitext (Default: stdin)', false );
}
* @return string HTML Rendering
*/
public function render( $wikitext ) {
- return $this->parse( $wikitext )->getText();
+ return $this->parse( $wikitext )->getText( [ 'wrapperDivClass' => '' ] );
}
/**
* @return ParserOutput
*/
protected function parse( $wikitext ) {
- $options = new ParserOptions;
- if ( $this->getOption( 'tidy' ) ) {
- $options->setTidy( true );
+ $options = ParserOptions::newCanonical();
+ $options->setOption( 'enableLimitReport', false );
+ if ( $this->getOption( 'no-tidy' ) ) {
+ $options->setTidy( false );
}
return $this->parser->parse(
$wikitext,