commit | bcd8e79648e0d5ef53d0ca4225f1f871eda1b718 | [log] [tgz] |
---|---|---|
author | jenkins-bot <[email protected]> | Mon Oct 16 21:37:51 2023 +0000 |
committer | Gerrit Code Review <[email protected]> | Mon Oct 16 21:37:51 2023 +0000 |
tree | c6dce6f0a9dc6e8a939bbab70e9de6c7fdbb8035 | |
parent | 53f71d468d2d85deee6d42d33a14f765bc5d61f6 [diff] | |
parent | 25ec416c9440628359522ab748476091017412df [diff] |
Merge "Fix double TOC on Vector 2022"
The ParserMigration extension provides an interface for comparing article rendering with a new non-default version of the MediaWiki parser, thus serving as a parser migration tool.
It was deployed on the Wikimedia production cluster during 2018 to compare Tidy-based output with a RemexHTML-based replacement.
In 2023 it was overhauled to compare legacy parser output with Parsoid output.
Add:
wfLoadExtension( 'ParserMigration' );
to your LocalSettings.php
to enable.
Running npm test
and composer test
will run automated code checks.
This extension adds action=parser-migration
to the MediaWiki action API, which parses a page with two different parser configurations and returns one or both variants in the API response.
It also adds 'Enable parser migration tool' to the list of 'Developer tools' options at the bottom of the 'Editing' options for a user. When this is enabled, an "Edit with migration tool" link is added to the Tools menu in the sidebar for article pages. Clicking this on an article page will bring up a variant of the "preview edit" page which allows you to compare the legacy parser output against Parsoid output.