From f28d204c12f539732fe26e48e1ae3617a21eea3c Mon Sep 17 00:00:00 2001 From: Dave Marquard Date: Thu, 9 Jul 2026 15:54:50 -0700 Subject: [PATCH 1/9] Support Substack-style footnotes in the article popover Substack footnote references are bare anchors (not wrapped in 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 --- Shared/Article Rendering/main.js | 6 ++-- Shared/Article Rendering/newsfoot.js | 41 ++++++++++++++++++++++++---- 2 files changed, 39 insertions(+), 8 deletions(-) diff --git a/Shared/Article Rendering/main.js b/Shared/Article Rendering/main.js index 1856d2e14..2dc4601c6 100644 --- a/Shared/Article Rendering/main.js +++ b/Shared/Article Rendering/main.js @@ -167,11 +167,13 @@ function error() { // Takes into account absoluting of URLs. function isLocalFootnote(target) { - return target.hash.startsWith("#fn") && target.href.indexOf(document.baseURI) === 0; + return (target.hash.startsWith("#fn") || target.hash.startsWith("#footnote")) && target.href.indexOf(document.baseURI) === 0; } function styleLocalFootnotes() { - for (elem of document.querySelectorAll("sup > a[href*='#fn'], sup > div > a[href*='#fn']")) { + // Multimarkdown-style: . Substack-style: a bare + // with no wrapper. + for (elem of document.querySelectorAll("sup > a[href*='#fn'], sup > div > a[href*='#fn'], a[id^='footnote-anchor-']")) { if (isLocalFootnote(elem)) { elem.classList.add("footnote"); } diff --git a/Shared/Article Rendering/newsfoot.js b/Shared/Article Rendering/newsfoot.js index 9f1dae3f6..765c06bd0 100644 --- a/Shared/Article Rendering/newsfoot.js +++ b/Shared/Article Rendering/newsfoot.js @@ -125,12 +125,37 @@ if (!target.hash) return; return decodeURIComponent(target.hash.substring(1)); } - /** @type {{fnref(target:HTMLAnchorElement): string|undefined}[]} */ + /** + * @type {{ + * fnref(target:HTMLAnchorElement): string|undefined, + * content(targetElement:HTMLElement): string + * }[]} + */ const footnoteFormats = [ + { // Substack: the ref + // points at a backlink N whose note text lives + // in the sibling elements that follow it, not inside the anchor. + fnref(target) { + if (!target.matches("a[id^='footnote-anchor-']")) return; + return idFromHash(target); + }, + content(targetElement) { + let html = ""; + let node = targetElement.nextElementSibling; + while (node && !node.matches("a[id^='footnote-']")) { + html += node.outerHTML; + node = node.nextElementSibling; + } + return html; + } + }, { // Multimarkdown fnref(target) { if (!target.matches(".footnote")) return; return idFromHash(target); + }, + content(targetElement) { + return targetElement.innerHTML; } } ]; @@ -140,22 +165,26 @@ if (!(ev.target && ev.target instanceof HTMLAnchorElement)) return; let targetId = undefined; + let format = undefined; for(const f of footnoteFormats) { targetId = f.fnref(ev.target); - if (targetId) break; + if (targetId) { + format = f; + break; + } } if (targetId === undefined) return; - + // Only override the default behaviour when we know we can find the // target element const targetElement = document.getElementById(targetId); if (targetElement === null) return; - + ev.preventDefault(); installContainer(ev.target); - - void new Footnote(targetElement.innerHTML, ev.target); + + void new Footnote(format.content(targetElement), ev.target); }); // Handle clicks on the footnote reverse link From e24e3ff0a83f20e62b676dd009ddc690df593cb8 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 6 Oct 2026 21:01:42 -0700 Subject: [PATCH 2/9] Update version. Write release notes. --- Technotes/ReleaseNotes-Mac.markdown | 19 +++++++++++++++++++ .../NetNewsWire_mac_target_common.xcconfig | 2 +- xcconfig/common/NetNewsWire_version.xcconfig | 2 +- 3 files changed, 21 insertions(+), 2 deletions(-) diff --git a/Technotes/ReleaseNotes-Mac.markdown b/Technotes/ReleaseNotes-Mac.markdown index 7df905c7c..e6e5e2574 100644 --- a/Technotes/ReleaseNotes-Mac.markdown +++ b/Technotes/ReleaseNotes-Mac.markdown @@ -1,5 +1,24 @@ # Mac Release Notes +### 7.2b1 7217 6 Oct 2026 - branch: main tag: mac-7.2b1 + +Added unread count display setting — show the count, show a dot, or hide it — which applies to the Dock icon badge, window title, and sidebar +Added column layout for the timeline — choose View > Use Column Layout +Expanded View > Sort Articles By with more options (works with standard and column layouts) +Made timeline sorting per window instead of one setting for the whole app +Made the Add Feed sheet start with the folder or account selected in the sidebar +Changed the message for adding a feed that’s already added to include the name of the folder (or folders) +Fixed bug where YouTube embeds in articles showed an error instead of playing +Fixed extra whitespace at the end of Slashdot articles and paragraphs running together +Fixed parsing of RSS feed titles when a feed contains a textinput section (Slashdot, for instance) +Added support for the instapaper_ignore class — elements marked with it are now removed from articles +Changed tabs in pre and code elements in articles to display as four spaces +Improved finding feeds in a page by skipping links to PDFs, movies, and other files that can’t be feeds +Changed finding a feed to use the redirected-to URL +Improved font sizing and fixed superscript orphans in table cells in the Tiqoe Dark theme +Sped up Today and unread count queries +Added up to 500 characters of the HTTP error response body to Error Log entries + ### 7.1.5 7216 29 Sep 2026 - branch: release/macos-7.1.5 tag: mac-7.1.5 Fixed bug introduced in 7.1.4 where the app wouldn’t ask for notifications permission on launch, which meant no unread count in the Dock icon for new users diff --git a/xcconfig/common/NetNewsWire_mac_target_common.xcconfig b/xcconfig/common/NetNewsWire_mac_target_common.xcconfig index 6d495b27e..b079ca2b2 100644 --- a/xcconfig/common/NetNewsWire_mac_target_common.xcconfig +++ b/xcconfig/common/NetNewsWire_mac_target_common.xcconfig @@ -1,7 +1,7 @@ #include "./NetNewsWire_version.xcconfig" // High Level Settings common to both the Mac application and any extensions we bundle with it -MARKETING_VERSION = 7.1.5 +MARKETING_VERSION = 7.2b1 APP_GROUP_ID = group.$(ORGANIZATION_IDENTIFIER).NetNewsWire-Evergreen$(APP_GROUP_SUFFIX) diff --git a/xcconfig/common/NetNewsWire_version.xcconfig b/xcconfig/common/NetNewsWire_version.xcconfig index 3a6a75f0f..a92515bdd 100644 --- a/xcconfig/common/NetNewsWire_version.xcconfig +++ b/xcconfig/common/NetNewsWire_version.xcconfig @@ -1 +1 @@ -CURRENT_PROJECT_VERSION = 7216 +CURRENT_PROJECT_VERSION = 7217 From fb1128b573ee732b3e04c18430ed750f9bb52a1d Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 6 Oct 2026 21:02:18 -0700 Subject: [PATCH 3/9] Update status. --- Technotes/Status.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Technotes/Status.md b/Technotes/Status.md index a3be0d83e..573c281f2 100644 --- a/Technotes/Status.md +++ b/Technotes/Status.md @@ -16,4 +16,5 @@ https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.1.4-7213 Mac shipping: 7.1.5 https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.1.5 -Mac beta: none +Mac beta: 7.2b1 +https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.2b1 From 43dcb6d46f7a3be7fa7b3bf8f8c1b62732a048a7 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 6 Oct 2026 21:28:30 -0700 Subject: [PATCH 4/9] Update appcasts. --- Appcasts/netnewswire-beta.xml | 27 +++++++++++++++++++++++++++ Appcasts/netnewswire6-beta.xml | 27 +++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/Appcasts/netnewswire-beta.xml b/Appcasts/netnewswire-beta.xml index 0c37524ad..077dcb0fa 100644 --- a/Appcasts/netnewswire-beta.xml +++ b/Appcasts/netnewswire-beta.xml @@ -6,6 +6,33 @@ Most recent NetNewsWire changes with links to updates. en + + NetNewsWire 7.2b1 + +
  • Added unread count display setting — show the count, show a dot, or hide it — which applies to the Dock icon badge, window title, and sidebar +
  • Added column layout for the timeline — choose View > Use Column Layout +
  • Expanded View > Sort Articles By with more options (works with standard and column layouts) +
  • Made timeline sorting per window instead of one setting for the whole app +
  • Made the Add Feed sheet start with the folder or account selected in the sidebar +
  • Changed the message for adding a feed that’s already added to include the name of the folder (or folders) +
  • Fixed bug where YouTube embeds in articles showed an error instead of playing +
  • Fixed extra whitespace at the end of Slashdot articles and paragraphs running together +
  • Fixed parsing of RSS feed titles when a feed contains a textinput section (Slashdot, for instance) +
  • Added support for the instapaper_ignore class — elements marked with it are now removed from articles +
  • Changed tabs in pre and code elements in articles to display as four spaces +
  • Improved finding feeds in a page by skipping links to PDFs, movies, and other files that can’t be feeds +
  • Changed finding a feed to use the redirected-to URL +
  • Improved font sizing and fixed superscript orphans in table cells in the Tiqoe Dark theme +
  • Sped up Today and unread count queries +
  • Added up to 500 characters of the HTTP error response body to Error Log entries + + ]]> + Tue, 6 Oct 2026 21:15:00 -0700 + + 15.0 + + NetNewsWire 7.1.5 Most recent NetNewsWire changes with links to updates. en + + NetNewsWire 7.2b1 + +
  • Added unread count display setting — show the count, show a dot, or hide it — which applies to the Dock icon badge, window title, and sidebar +
  • Added column layout for the timeline — choose View > Use Column Layout +
  • Expanded View > Sort Articles By with more options (works with standard and column layouts) +
  • Made timeline sorting per window instead of one setting for the whole app +
  • Made the Add Feed sheet start with the folder or account selected in the sidebar +
  • Changed the message for adding a feed that’s already added to include the name of the folder (or folders) +
  • Fixed bug where YouTube embeds in articles showed an error instead of playing +
  • Fixed extra whitespace at the end of Slashdot articles and paragraphs running together +
  • Fixed parsing of RSS feed titles when a feed contains a textinput section (Slashdot, for instance) +
  • Added support for the instapaper_ignore class — elements marked with it are now removed from articles +
  • Changed tabs in pre and code elements in articles to display as four spaces +
  • Improved finding feeds in a page by skipping links to PDFs, movies, and other files that can’t be feeds +
  • Changed finding a feed to use the redirected-to URL +
  • Improved font sizing and fixed superscript orphans in table cells in the Tiqoe Dark theme +
  • Sped up Today and unread count queries +
  • Added up to 500 characters of the HTTP error response body to Error Log entries + + ]]> + Tue, 6 Oct 2026 21:15:00 -0700 + + 15.0 + + NetNewsWire 7.1.5 Date: Tue, 6 Oct 2026 21:28:37 -0700 Subject: [PATCH 5/9] Bump version. --- xcconfig/common/NetNewsWire_ios_target_common.xcconfig | 2 +- xcconfig/common/NetNewsWire_version.xcconfig | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/xcconfig/common/NetNewsWire_ios_target_common.xcconfig b/xcconfig/common/NetNewsWire_ios_target_common.xcconfig index daa01dc65..f8165cf5b 100644 --- a/xcconfig/common/NetNewsWire_ios_target_common.xcconfig +++ b/xcconfig/common/NetNewsWire_ios_target_common.xcconfig @@ -1,7 +1,7 @@ #include "./NetNewsWire_version.xcconfig" // High Level Settings common to both the iOS application and any extensions we bundle with it -MARKETING_VERSION = 7.1.4 +MARKETING_VERSION = 7.2 APP_GROUP_ID = group.$(ORGANIZATION_IDENTIFIER).NetNewsWire.iOS$(APP_GROUP_SUFFIX) diff --git a/xcconfig/common/NetNewsWire_version.xcconfig b/xcconfig/common/NetNewsWire_version.xcconfig index a92515bdd..08d0983a9 100644 --- a/xcconfig/common/NetNewsWire_version.xcconfig +++ b/xcconfig/common/NetNewsWire_version.xcconfig @@ -1 +1 @@ -CURRENT_PROJECT_VERSION = 7217 +CURRENT_PROJECT_VERSION = 7218 From 2ff998ffdebd11d92baf091ef783f500beb76894 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 6 Oct 2026 21:39:50 -0700 Subject: [PATCH 6/9] Write release notes. --- Technotes/ReleaseNotes-iOS.markdown | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/Technotes/ReleaseNotes-iOS.markdown b/Technotes/ReleaseNotes-iOS.markdown index 5776adfab..e885b8caf 100644 --- a/Technotes/ReleaseNotes-iOS.markdown +++ b/Technotes/ReleaseNotes-iOS.markdown @@ -1,5 +1,25 @@ # iOS Release Notes +### 7.2 build 7218 6 Oct 2026 - branch: main tag: iOS-7.2-7218 + +Added unread count display setting — show the count, show a dot, or hide it — which applies to the app icon badge, feeds list, and widgets +Fixed bug where the timeline selection was cleared when using the left arrow or shift-tab to go back to the feeds list (when multiple columns are showing) +Changed the selection color in the feeds list to blue when it has keyboard focus and multiple columns are showing +Fixed bug where YouTube embeds in articles showed an error instead of playing +Fixed extra whitespace at the end of Slashdot articles and paragraphs running together +Fixed parsing of RSS feed titles when a feed contains a textinput section (Slashdot, for instance) +Added support for the instapaper_ignore class — elements marked with it are now removed from articles +Added support for Substack-style footnotes in the article popover +Improved CJK text rendering in the article view by adding text-autospace +Changed tabs in pre and code elements in articles to display as four spaces +Improved finding feeds in a page by skipping links to PDFs, movies, and other files that can’t be feeds +Changed finding a feed to use the redirected-to URL +Improved font sizing and fixed superscript orphans in table cells in the Tiqoe Dark theme +Fixed horizontal overflow of WordPress Math blocks and SVGs in the Tiqoe Dark theme +Changed the Tiqoe Dark theme to hide the PBS NewsHour funding invite in Reader View +Sped up Today and unread count queries +Added up to 500 characters of the HTTP error response body to Error Log entries + ### 7.1.4 build 7213 18 Sep 2026 - branch: main tag: iOS-7.1.4-7213 This was originally a TestFlight release. It was submitted to the App Store as the 7.1.4 release version on 20 Sep 2026. From 9adc82bb0b8d04dfb4080ba6be94c5beb1436323 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 6 Oct 2026 21:40:45 -0700 Subject: [PATCH 7/9] Update status. --- Technotes/Status.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Technotes/Status.md b/Technotes/Status.md index 573c281f2..8ef0d256d 100644 --- a/Technotes/Status.md +++ b/Technotes/Status.md @@ -5,11 +5,11 @@ https://github.com/Ranchero-Software/NetNewsWire/milestone/74 ## iOS -iOS shipping: 7.1.3 (7206) +iOS shipping: 7.1.4 (7213) https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.1.3-7206 -iOS beta: 7.1.4 (7213) -https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.1.4-7213 +iOS beta: 7.2 (7218) +https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.2-7218 ## Mac From ccdb7156158bd06e8b1e799e544e9560c090a244 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 7 Oct 2026 10:04:49 -0700 Subject: [PATCH 8/9] Write release notes. Bump version. Update status. --- Technotes/ReleaseNotes-Mac.markdown | 6 ++++++ Technotes/ReleaseNotes-iOS.markdown | 2 +- Technotes/Status.md | 4 ++-- xcconfig/common/NetNewsWire_mac_target_common.xcconfig | 2 +- xcconfig/common/NetNewsWire_version.xcconfig | 2 +- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/Technotes/ReleaseNotes-Mac.markdown b/Technotes/ReleaseNotes-Mac.markdown index e6e5e2574..8eb9cd8b5 100644 --- a/Technotes/ReleaseNotes-Mac.markdown +++ b/Technotes/ReleaseNotes-Mac.markdown @@ -1,5 +1,11 @@ # Mac Release Notes +### 7.2b2 7219 7 Oct 2026 - branch: main tag: mac-7.2b2 + +Added support for Substack-style footnotes +Improved CJK text rendering in the article view by adding text-autospace +Fixed horizontal overflow of WordPress Math blocks and SVGs in the Tiqoe Dark theme + ### 7.2b1 7217 6 Oct 2026 - branch: main tag: mac-7.2b1 Added unread count display setting — show the count, show a dot, or hide it — which applies to the Dock icon badge, window title, and sidebar diff --git a/Technotes/ReleaseNotes-iOS.markdown b/Technotes/ReleaseNotes-iOS.markdown index e885b8caf..7c2589212 100644 --- a/Technotes/ReleaseNotes-iOS.markdown +++ b/Technotes/ReleaseNotes-iOS.markdown @@ -9,7 +9,7 @@ Fixed bug where YouTube embeds in articles showed an error instead of playing Fixed extra whitespace at the end of Slashdot articles and paragraphs running together Fixed parsing of RSS feed titles when a feed contains a textinput section (Slashdot, for instance) Added support for the instapaper_ignore class — elements marked with it are now removed from articles -Added support for Substack-style footnotes in the article popover +Added support for Substack-style footnotes Improved CJK text rendering in the article view by adding text-autospace Changed tabs in pre and code elements in articles to display as four spaces Improved finding feeds in a page by skipping links to PDFs, movies, and other files that can’t be feeds diff --git a/Technotes/Status.md b/Technotes/Status.md index 8ef0d256d..70c2a4551 100644 --- a/Technotes/Status.md +++ b/Technotes/Status.md @@ -16,5 +16,5 @@ https://github.com/Ranchero-Software/NetNewsWire/releases/tag/iOS-7.2-7218 Mac shipping: 7.1.5 https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.1.5 -Mac beta: 7.2b1 -https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.2b1 +Mac beta: 7.2b2 +https://github.com/Ranchero-Software/NetNewsWire/releases/tag/mac-7.2b2 diff --git a/xcconfig/common/NetNewsWire_mac_target_common.xcconfig b/xcconfig/common/NetNewsWire_mac_target_common.xcconfig index b079ca2b2..fa2578b8e 100644 --- a/xcconfig/common/NetNewsWire_mac_target_common.xcconfig +++ b/xcconfig/common/NetNewsWire_mac_target_common.xcconfig @@ -1,7 +1,7 @@ #include "./NetNewsWire_version.xcconfig" // High Level Settings common to both the Mac application and any extensions we bundle with it -MARKETING_VERSION = 7.2b1 +MARKETING_VERSION = 7.2b2 APP_GROUP_ID = group.$(ORGANIZATION_IDENTIFIER).NetNewsWire-Evergreen$(APP_GROUP_SUFFIX) diff --git a/xcconfig/common/NetNewsWire_version.xcconfig b/xcconfig/common/NetNewsWire_version.xcconfig index 08d0983a9..42acefeca 100644 --- a/xcconfig/common/NetNewsWire_version.xcconfig +++ b/xcconfig/common/NetNewsWire_version.xcconfig @@ -1 +1 @@ -CURRENT_PROJECT_VERSION = 7218 +CURRENT_PROJECT_VERSION = 7219 From 732fac89a9b27cb14200aacdee9f3e942e410542 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Wed, 7 Oct 2026 13:29:06 -0700 Subject: [PATCH 9/9] Update appcasts. --- Appcasts/netnewswire-beta.xml | 17 +++++++++++++++++ Appcasts/netnewswire6-beta.xml | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/Appcasts/netnewswire-beta.xml b/Appcasts/netnewswire-beta.xml index 077dcb0fa..75962dda8 100644 --- a/Appcasts/netnewswire-beta.xml +++ b/Appcasts/netnewswire-beta.xml @@ -6,6 +6,23 @@ Most recent NetNewsWire changes with links to updates. en + + NetNewsWire 7.2b2 + View > Use Column Layout menu item. Also note the new setting for unread counts at the top of the General (first) settings tab. +

    +Changes since 7.2b1: +

      +
    • Added support for Substack-style footnotes +
    • Improved CJK text rendering in the article view by adding text-autospace +
    • Fixed horizontal overflow of WordPress Math blocks and SVGs in the Tiqoe Dark theme +
    + ]]>
    + Wed, 7 Oct 2026 10:20:00 -0700 + + 15.0 +
    + NetNewsWire 7.2b1 Most recent NetNewsWire changes with links to updates. en + + NetNewsWire 7.2b2 + View > Use Column Layout menu item. Also note the new setting for unread counts at the top of the General (first) settings tab. +

    +Changes since 7.2b1: +

      +
    • Added support for Substack-style footnotes +
    • Improved CJK text rendering in the article view by adding text-autospace +
    • Fixed horizontal overflow of WordPress Math blocks and SVGs in the Tiqoe Dark theme +
    + ]]>
    + Wed, 7 Oct 2026 10:20:00 -0700 + + 15.0 +
    + NetNewsWire 7.2b1