|
MediaWiki 1.44.0
|
Check arbitrary wikitext for lint errors. More...
Public Member Functions | |
| __construct (Parsoid $parsoid, PageConfigFactory $pageConfigFactory, TitleFactory $titleFactory, ExtensionRegistry $extensionRegistry, Config $mainConfig) | |
| check (string $wikitext) | |
| Check the given wikitext for lint errors. | |
| checkSome (string $wikitext, array $disabled) | |
| Check the given wikitext for lint errors against a subset of lint categories. | |
Check arbitrary wikitext for lint errors.
Definition at line 21 of file LintErrorChecker.php.
| MediaWiki\Parser\Parsoid\LintErrorChecker::__construct | ( | Parsoid | $parsoid, |
| PageConfigFactory | $pageConfigFactory, | ||
| TitleFactory | $titleFactory, | ||
| ExtensionRegistry | $extensionRegistry, | ||
| Config | $mainConfig ) |
Definition at line 28 of file LintErrorChecker.php.
| MediaWiki\Parser\Parsoid\LintErrorChecker::check | ( | string | $wikitext | ) |
Check the given wikitext for lint errors.
While not strictly required, you'll get better results if the wikitext has already gone through PST
| string | $wikitext | Wikitext after PST |
Definition at line 64 of file LintErrorChecker.php.
| MediaWiki\Parser\Parsoid\LintErrorChecker::checkSome | ( | string | $wikitext, |
| array | $disabled ) |
Check the given wikitext for lint errors against a subset of lint categories.
While not strictly required, you'll get better results if the wikitext has already gone through PST
| string | $wikitext | Wikitext after PST |
| string[] | $disabled | Array of lint categories to disable |
Definition at line 77 of file LintErrorChecker.php.