Flow has a convertToText.php script which can provide the wikitext equivalent of a Flow page. This hasn't been used much; I think the last time it was touched was in 2016 (T90075: Update and retest the convertToText script). We should try it on some complex pages and see how well it works.
Some things to look for:
- complex markup (if we can find or create a suitable test page)
- handling of hidden/deleted/suppressed comments/topics
- huge pages (e.g. mw:Support or the frwiki Teahouse)
- something with a lot of indentation / response levels
- complex markup when indented
- can we get an estimate of time needed per comment?