- $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 );