Numbering footnotes across multiple pages

I have footnotes that need to be numbered across multiple markdown files using this syntax:

This is the first footnote on my first page[^1]
This is the first footnote on my second page[^23]

Both link to the proper footnote, but both appear with the superscript ‘1’ when the second one should be ‘23’.

<p>This is the first footnote on my second page<sup id="fnref:23"><a href="#fn:23" class="footnote">1</a></sup></p>

Is there a way to render the correct footnote number? This is my markdown config:

markdown: kramdown
kramdown:
  parse_block_html: true