mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 18:56:14 +00:00
Substack footnote references are bare <a id="footnote-anchor-N" href="#footnote-N"> anchors (not wrapped in <sup> like Multimarkdown), and their targets are backlink anchors whose note text lives in the following sibling elements rather than inside the target itself. Neither the footnote badge styling nor the newsfoot popover recognized them. - main.js: broaden styleLocalFootnotes() to also badge these bare anchors, and let isLocalFootnote() accept the "#footnote-" hash prefix (it previously only matched "#fn"). - newsfoot.js: add a Substack footnote format that recognizes the reference and extracts note content from the sibling elements after the backlink; the click handler now uses each format's own content extractor instead of assuming the target's innerHTML. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>