Perl scripts for renumbering footnotes in markdown documents