(First off, the usual disclaimer - I know Flow is very janky and in the process of being undeployed, and don't really care if this is deemed not a problem and not worth fixing - I'll just work around it in the Flow export script I'm using, filing for the record anyway)
The Flow API seems to be garbling <pre> tags when asked to return wikitext in some situations. For example, https://www.mediawiki.org/wiki/Special:ApiSandbox#action=flow&format=json&submodule=view-topic&page=Topic%3AStixxiicok0zbyzn&formatversion=2&vtformat=wikitext says that the content of the opening post of https://www.mediawiki.org/wiki/Topic:Stixxiicok0zbyzn converts to wikitext as:
Would somebody please add for MyWikis, they now offer VisualEditor: <pre> | [http://www.mywikis.com/ MyWikis] | USA | Yes | | no | paid | Yes (included) | FTP and SSH | Ticketed support system, email, and phone | Yes | Unlimited storage, unlimited bandwidth. VisualEditor available with MyWikis Pro and above plans.<br />[https://www.mywikis.com/hostedparsoid A dirt-cheap hosted Parsoid plan] is available to non-MyWikis wikis. </pre> If you would like to corroborate this with MyWikis Support, please feel free to email them at contact [at] mywikis [dot] com. Thanks!
Even though if you look at the posts the <pre> tags shouldn't be escaped - it renders with HTML <pre>. You can also see this when editing the post as wikitext. You can also see this as https://www.mediawiki.org/wiki/Topic:Ritum7nezwfd3g6a, which seems to have gotten garbled during the LQT->Flow import, and is now getting garbled again when its content is exported as wikitext.
This can also be seen when editing the posts using the wikitext editor.