make footnotes unique before handing over to pandoc
add little json for testing against
remove htmltidy, it was too chatty
new built writing