Perl scripts to renumber footnotes in markdown files