I found a plugin to do the conversion and it did work except for images. I then used bash loops with pandoc to convert them to markdown. Then a load more bash loops and perl one liners to remove the header added by the conversion and add a fresh one. It has pretty much worked, now just need to tidy up and check links.