René's URL Explorer Experiment


Title: id(web): unused link reference definitions are silently deleted on save — a definitions-only document saves as an empty file · Issue #1004 · developing-today/code · GitHub

Open Graph Title: id(web): unused link reference definitions are silently deleted on save — a definitions-only document saves as an empty file · Issue #1004 · developing-today/code

X Title: id(web): unused link reference definitions are silently deleted on save — a definitions-only document saves as an empty file · Issue #1004 · developing-today/code

Description: Bug In the id web editor's markdown ↔ ProseMirror codec (pkgs/id/src/web/markdown.rs), link reference definitions that are not used by a link in the document are silently deleted on save: body text [unused]: https://example.com loads and...

Open Graph Description: Bug In the id web editor's markdown ↔ ProseMirror codec (pkgs/id/src/web/markdown.rs), link reference definitions that are not used by a link in the document are silently deleted on save: body text...

X Description: Bug In the id web editor's markdown ↔ ProseMirror codec (pkgs/id/src/web/markdown.rs), link reference definitions that are not used by a link in the document are silently deleted on save: body ...

Opengraph URL: https://github.com/developing-today/code/issues/1004

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(web): unused link reference definitions are silently deleted on save — a definitions-only document saves as an empty file","articleBody":"## Bug\n\nIn the id web editor's markdown ↔ ProseMirror codec (`pkgs/id/src/web/markdown.rs`), **link reference definitions that are not used by a link in the document are silently deleted on save**:\n\n```markdown\nbody text\n\n[unused]: https://example.com\n```\n\nloads and saves as just:\n\n```markdown\nbody text\n```\n\nThe extreme case is total: a document consisting only of reference definitions (a shared \"link library\" page, or a draft whose links are added later)\n\n```markdown\n[a]: https://a.com\n[b]: https://b.com\n```\n\nloads as an empty document and saves as an **empty file**.\n\nDefinitions that *are* used survive in substance — full (`[one][r]`), collapsed (`[text][]`) and shortcut (`[ref]`) references all round-trip, with the reference inlined as `[text](url)` and the definition consumed. So the loss is specifically: any definition whose label no link in the current document references.\n\n## Verified repro (this run, main 3b9d1592)\n\nStandalone verbatim-codec probe (evidence log: goal `hidden_files/probe-2026-10-26-1415/out4.log`):\n\n- `unused-ref-def`: `\"body text\\n\\n[unused]: https://example.com\\n\"` → PM is a single paragraph `body text` (the definition appears nowhere) → save returns `\"body text\\n\"`.\n- `ref-def-only-doc`: `\"[a]: https://a.com\\n[b]: https://b.com\\n\"` → PM is the empty-document placeholder paragraph → save returns `\"\"` (empty file).\n- Controls (same log): `shortcut-ref`, `collapsed-ref`, `multi-ref-same` — used definitions round-trip correctly as inlined links.\n\n## Why it happens / why it matters\n\nThe ProseMirror schema the codec targets has no node for a reference definition, and comrak resolves definitions during parsing without surfacing unused ones as AST nodes — so the parse direction has nowhere to put them and they vanish before the editor ever sees the document. Keeping a block of reference definitions at the foot of a note for later use is a standard markdown authoring pattern; opening such a file in the id web editor and saving (even with no edit) destroys that block with no warning. Same silent-loss-on-save family as #996 (empty links), in a distinct mechanism.\n\n## Suggested direction (triage to decide)\n\nThe fix needs a deliberate design choice, e.g.: (a) preserve unused definitions verbatim — the parse direction would need a source pre-scan for reference definitions, diff them against the labels comrak actually consumed, and carry the leftovers (e.g. as a trailing raw block the editor displays but does not eat); (b) represent definitions in the PM doc (a dedicated node) — cleaner but touches the editor schema; or (c) if neither is acceptable, document the limitation where the codec's schema is described (module doc comment at the top of markdown.rs) so the loss is at least a known, stated behaviour instead of a silent one. Doing nothing silently is the only unacceptable outcome.\n\n## Acceptance criteria\n\n- A document with an unused reference definition no longer loses it silently on a load/save round trip — either the definition survives (verbatim or in an equivalent reference form), or the limitation is explicitly documented in the codec module docs and this issue is closed citing that documentation.\n- Used references (full, collapsed, shortcut, multiple links sharing one definition) keep round-tripping exactly as today.\n- A definitions-only document does not save as an empty file under the chosen fix (or is covered by the documented limitation).\n- Existing `web::markdown` tests pass.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-26T19:20:53Z","url":"https://github.com/developing-today/code/issues/1004"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:8f1ddf5f-e48c-9f8e-ce0a-66354e329174
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idD6BE:87352:2DC055:3FCDDA:6B072EF5
html-safe-noncebe5d1c1e724f1f0114e7539e22873b0f74bf078723cd6d52994009965dac1dc6
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENkJFOjg3MzUyOjJEQzA1NTozRkNEREE6NkIwNzJFRjUiLCJ2aXNpdG9yX2lkIjoiODk4MTc5MTA1MDM1MjI0MjQyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac087503a3a7647b492e179003aac2f03a50d22ccb7c39ff8516935f90d3627cff
hovercard-subject-tagissue:6046589107
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/1004/issue_layout
twitter:imagehttps://opengraph.githubassets.com/b4f5cecc34d3abfdeb2c1434aa2268907f72311c2acdec633f3cb6a0e8ac96de/developing-today/code/issues/1004
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/b4f5cecc34d3abfdeb2c1434aa2268907f72311c2acdec633f3cb6a0e8ac96de/developing-today/code/issues/1004
og:image:altBug In the id web editor's markdown ↔ ProseMirror codec (pkgs/id/src/web/markdown.rs), link reference definitions that are not used by a link in the document are silently deleted on save: body text...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
None2a60952cad7efb2604ea85e500208f51c1ec1943aa260ac605c13eb46a1ed83b
turbo-cache-controlno-preview
go-importgithub.com/developing-today/code git https://github.com/developing-today/code.git
octolytics-dimension-user_id26439447
octolytics-dimension-user_logindeveloping-today
octolytics-dimension-repository_id627308783
octolytics-dimension-repository_nwodeveloping-today/code
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id627308783
octolytics-dimension-repository_network_root_nwodeveloping-today/code
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release345c27626db08417fdfc84278a4415ae9a48d8f3
ui-targetcanary-1
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/1004#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F1004
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F1004
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=developing-today%2Fcode
Reloadhttps://github.com/developing-today/code/issues/1004
Reloadhttps://github.com/developing-today/code/issues/1004
Reloadhttps://github.com/developing-today/code/issues/1004
developing-todayhttps://github.com/developing-today
codehttps://github.com/developing-today/code
Codehttps://github.com/developing-today/code
Issues1.1k (1.1k)https://github.com/developing-today/code/issues
Pull requests194 (194)https://github.com/developing-today/code/pulls
Discussionshttps://github.com/developing-today/code/discussions
Actionshttps://github.com/developing-today/code/actions
Projectshttps://github.com/developing-today/code/projects
Wikihttps://github.com/developing-today/code/wiki
Security and qualityhttps://github.com/developing-today/code/security
Insightshttps://github.com/developing-today/code/insights
https://github.com/developing-today/code
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/1004
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/1004
#5949https://github.com/developing-today/code/pull/5949
id(web): unused link reference definitions are silently deleted on save — a definitions-only document saves as an empty filehttps://github.com/developing-today/code/issues/1004#top
#5949https://github.com/developing-today/code/pull/5949
https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/mhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fm%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
mode/onlinehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22mode%2Fonline%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
user/escalatedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22user%2Fescalated%22
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/1004#issue-6046589107
3b9d159https://github.com/developing-today/code/commit/3b9d1592c05e72e19b4081c643fe018dab81c98b
#996https://github.com/developing-today/code/issues/996
Nexthttps://github.com/developing-today/code/issues/1004?timeline_page=1
dezren39https://github.com/dezren39
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
on Oct 26, 2026https://github.com/developing-today/code/issues/1004#event-34296313986
https://github.com/apps/developing-today
developing-todayhttps://github.com/apps/developing-today
on Oct 26, 2026https://github.com/developing-today/code/issues/1004#issuecomment-6425210733
developing.todayhttps://kaneo.security.cab
CODE-175https://kaneo.security.cab/dashboard/workspace/6oQgIkST0YGrCcxrnhbHPOUCfgdD3cqE/project/pfcq432h349r20up18gttfv4/task/oeuuq9xrqh112vu7v4z3odt9
dezren39https://github.com/dezren39
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
on Oct 26, 2026https://github.com/developing-today/code/issues/1004#event-34296315638
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/1004#event-34296322570
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/1004#issuecomment-6425221074
3b9d159https://github.com/developing-today/code/commit/3b9d1592c05e72e19b4081c643fe018dab81c98b
dezren39https://github.com/dezren39
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
status/needs-triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fneeds-triage%22
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
on Oct 31, 2026https://github.com/developing-today/code/issues/1004#event-34792800193
dezren39https://github.com/dezren39
status/blockedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fblocked%22
on Nov 11, 2026https://github.com/developing-today/code/issues/1004#event-35753021176
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 11, 2026https://github.com/developing-today/code/issues/1004#issuecomment-6785038481
#7170https://github.com/developing-today/code/pull/7170
#5949https://github.com/developing-today/code/pull/5949
#5949https://github.com/developing-today/code/pull/5949
#7170https://github.com/developing-today/code/pull/7170
#7170https://github.com/developing-today/code/pull/7170
#7170https://github.com/developing-today/code/pull/7170
dezren39https://github.com/dezren39
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Nov 11, 2026https://github.com/developing-today/code/issues/1004#event-35753022731
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 11, 2026https://github.com/developing-today/code/issues/1004#issuecomment-6786146569
#1004https://github.com/developing-today/code/issues/1004
#5949https://github.com/developing-today/code/pull/5949
f1f736bhttps://github.com/developing-today/code/commit/f1f736b677c9b3a4f7115319b9c8525edf5ead47
0f25337https://github.com/developing-today/code/commit/0f25337665f65a6f81ada4689011930778427be1
#5949https://github.com/developing-today/code/pull/5949
#5949https://github.com/developing-today/code/pull/5949
0f25337https://github.com/developing-today/code/commit/0f25337665f65a6f81ada4689011930778427be1
#5949https://github.com/developing-today/code/pull/5949
#1004https://github.com/developing-today/code/issues/1004
#8355https://github.com/developing-today/code/issues/8355
dezren39https://github.com/dezren39
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
status/blockedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fblocked%22
queue/blockedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fblocked%22
on Nov 11, 2026https://github.com/developing-today/code/issues/1004#event-35757547225
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#5949https://github.com/developing-today/code/pull/5949
on Nov 11, 2026https://github.com/developing-today/code/issues/1004#event-35769936206
developing-todayhttps://github.com/apps/developing-today
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
status:in-reviewhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Ain-review%22
on Nov 11, 2026https://github.com/developing-today/code/issues/1004#event-35769940284
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 12, 2026https://github.com/developing-today/code/issues/1004#issuecomment-6835719294
#7170https://github.com/developing-today/code/pull/7170
#1004https://github.com/developing-today/code/issues/1004
#5949https://github.com/developing-today/code/pull/5949
#7170https://github.com/developing-today/code/pull/7170
f342c4bhttps://github.com/developing-today/code/commit/f342c4bfd4ac2c6fabf52c8741923c5c82adfc4e
#7170https://github.com/developing-today/code/pull/7170
#5949https://github.com/developing-today/code/pull/5949
https://github.com/dezren39
dezren39https://github.com/dezren39
on Nov 12, 2026https://github.com/developing-today/code/issues/1004#issuecomment-6835788535
#7170https://github.com/developing-today/code/pull/7170
#5949https://github.com/developing-today/code/pull/5949
8d14e1fhttps://github.com/developing-today/code/commit/8d14e1f2085f4f29d99a5dbb47f0a59f992c9367
f1f8ebdhttps://github.com/developing-today/code/commit/f1f8ebd79554dc2ae5a2408ff5ef7fcdcaefdb12
#5949https://github.com/developing-today/code/pull/5949
#7170https://github.com/developing-today/code/pull/7170
#1004https://github.com/developing-today/code/issues/1004
#5949https://github.com/developing-today/code/pull/5949
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/1004
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/1004
dezren39https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
effort/mhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22effort%2Fm%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
mode/onlinehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22mode%2Fonline%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%22
status/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
status:donehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%3Adone%22
task/triagehttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22task%2Ftriage%22
user/escalatedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22user%2Fescalated%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.