Title: id(web): .txt save drops footnote_reference atoms — PR #3274 documented the gap, no follow-up filed · Issue #5366 · developing-today/code · GitHub
Open Graph Title: id(web): .txt save drops footnote_reference atoms — PR #3274 documented the gap, no follow-up filed · Issue #5366 · developing-today/code
X Title: id(web): .txt save drops footnote_reference atoms — PR #3274 documented the gap, no follow-up filed · Issue #5366 · developing-today/code
Description: Finding .txt save in the id web editor silently drops every footnote_reference atom. PR #3274 (#3274, commit f210bff, merged 2026-11-01 as 2c37109) fixed the sibling image-atom loss for #1491 and documented this remainder in the code its...
Open Graph Description: Finding .txt save in the id web editor silently drops every footnote_reference atom. PR #3274 (#3274, commit f210bff, merged 2026-11-01 as 2c37109) fixed the sibling image-atom loss for #1491 and d...
X Description: Finding .txt save in the id web editor silently drops every footnote_reference atom. PR #3274 (#3274, commit f210bff, merged 2026-11-01 as 2c37109) fixed the sibling image-atom loss for #1491 and d...
Opengraph URL: https://github.com/developing-today/code/issues/5366
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(web): .txt save drops footnote_reference atoms — PR #3274 documented the gap, no follow-up filed","articleBody":"## Finding\n\n`.txt` save in the id web editor silently drops every `footnote_reference` atom. PR #3274 (https://github.com/developing-today/code/pull/3274, commit f210bff6ba, merged 2026-11-01 as 2c3710942a) fixed the sibling image-atom loss for #1491 and documented this remainder in the code itself, but no follow-up issue was ever filed:\n\n- The PR added this doc comment on `extract_plain_text` in `pkgs/id/src/web/routes.rs`: \"Known remaining gap: `footnote_reference` atoms are not yet rendered — they contribute nothing; that is explicitly out of scope for the #1491 fix.\"\n- Verified on current main (fd961f654672): the same comment is still at `routes.rs:2406`, and `extract_inline_text` (`routes.rs:2468`) handles only `text`, `hard_break`, and `image`; every other inline node is recursed into via its `content` array.\n- A `footnote_reference` is a leaf atom with no `content` — its payload is `attrs.label` (node shape `{\"type\": \"footnote_reference\", \"attrs\": {\"label\": \"1\"}}`, see `pkgs/id/src/web/markdown.rs` footnote tests) — so the recursion contributes an empty string and the reference vanishes.\n\n## Why it matters\n\nThis is the same loss class #1306/#1491 established as a bug for `.txt` save (\"loss-free extraction\"): a document whose footnotes were authored or opened in the editor saves to plain text with the `[^1]` markers gone, while the footnote *definition* text survives (definition blocks are containers and are recursed into) — leaving orphaned note text with nothing in the body pointing at it. The gap is acknowledged in the source but untracked, so nothing will ever schedule the fix.\n\n## Acceptance criteria\n\n- `extract_inline_text` (or its caller) renders a `footnote_reference` atom as `[^\u003clabel>]` — the same marker the markdown codec emits — at its inline position, using the atom's `attrs.label` verbatim when non-empty.\n- New tests in `pkgs/id/src/web/routes.rs` pin: a footnote reference between text runs in a paragraph, a reference inside a recursive container (list item or blockquote), and the missing/empty-label case (contributes nothing, does not panic).\n- Existing `extract_plain_text` / routes tests still pass; footnote_definition handling is unchanged.\n\nFound by pr-diff-review lane B reviewing PR #3274 (batch 3253–3276, 2026-11-04). Dedupe: searches for `footnote_reference`, `extract_plain_text`, and open footnote issues return only #1347 (richSchema node coverage), #1491 (images, closed by #3274), #945/#1565/#1031 (markdown save path, different defect), and open #1004/#1376 (link-reference definitions / alert blockquotes) — none covers `.txt` extraction dropping footnote references.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-04T08:53:44Z","url":"https://github.com/developing-today/code/issues/5366"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:9de3ea4a-bb11-6133-2d15-99657c1b203a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B1C6:1BFFFE:41BA8A:5BD6F8:6B06C432 |
| html-safe-nonce | e9e4ad6996adeebd67bb004ccef2a9f63588436425b8c7f1c7b9fcbcca61cd68 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMUM2OjFCRkZGRTo0MUJBOEE6NUJENkY4OjZCMDZDNDMyIiwidmlzaXRvcl9pZCI6IjMyMjIzNjI3OTcyOTYwMzYzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 78c84df79800525561dad3fa6bc4e234242ad995c6f869aa14f68d5be2c97cee |
| hovercard-subject-tag | issue:6199612905 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/5366/issue_layout |
| twitter:image | https://opengraph.githubassets.com/986d2386d27b572954f845729257ce20a8f32c9cd9afa2eec6175cb27a7e303a/developing-today/code/issues/5366 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/986d2386d27b572954f845729257ce20a8f32c9cd9afa2eec6175cb27a7e303a/developing-today/code/issues/5366 |
| og:image:alt | Finding .txt save in the id web editor silently drops every footnote_reference atom. PR #3274 (#3274, commit f210bff, merged 2026-11-01 as 2c37109) fixed the sibling image-atom loss for #1491 and d... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 368c7a40954edeee7b235ee7d6ea0324ab4bf08b6c85644cc872cf401bc50048 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 5a75d10bdd6e58223d506401c462d2d380f5e8c8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width