Thanks a lot! Will take a look.
Also, I appreciate the additional comment about the thoughts behind this. That is a problem we luckily didn’t encounter. The main reason I was thinking about a two-pass import is that the hyperlinks in quotes still have the old URL - and while permalinks should also work, I think it would be nicer to use the new URL to posts right away.