Hi! I'm developing a maintenance script that needs to convert HTML to wikitext.
However it seems https://mediawiki.solutions/w/api.php?action=help&modules=visualeditoredit no longer works (see https://phabricator.wikimedia.org/T234049) and the REST API doesn't have a method for transforming HTML to wikitext either.
It seems the preferred way is ParsoidExtensionAPI, but https://www.mediawiki.org/wiki/Parsoid/So_you_want_your_extension_to_work_with_Parsoid doesn't seem to cover maintenance scripts, so following the advice there, I'm opening this ticket.
So how can I transform HTML to wikitext from a maintenance script?
Note: the input HTML comes from https://mediawiki.solutions/w/api.php?action=help&modules=visualeditor