Drop footnote-references from summary if bottom_footnotes = true

When only the page.summary is shown in a section, its footnote-references are shown but the links are broken if the site is configured with bottom_footnotes = true.

I believe it would make sense to strip the footnote references altogether from the summary in such cases. Maybe the markdown filter could take an additional optional parameter to avoid rendering footnotes altogether?

Actually it looks like some code is supposed to be doing just that:

Yet I still see the <sup class=”footnote-reference”> in my summary.

Found the issue, submitted a PR:

TL;DR: the regular expression that was locating footnote-references for deletion in summarywasn’t up to date with the introduction of an id attribute, for back-references.