Convert <ref> tags to Dokuwiki footnotes, closes #16