René's URL Explorer Experiment


Title: id(web): marked spans crossing a soft line break corrupt or fragment on save — single-mark, non-fixpoint · Issue #981 · developing-today/code · GitHub

Open Graph Title: id(web): marked spans crossing a soft line break corrupt or fragment on save — single-mark, non-fixpoint · Issue #981 · developing-today/code

X Title: id(web): marked spans crossing a soft line break corrupt or fragment on save — single-mark, non-fixpoint · Issue #981 · developing-today/code

Description: Summary In the id web editor's markdown ↔ ProseMirror codec (pkgs/id/src/web/markdown.rs), a single-mark span that crosses a soft line break corrupts on save. When a strong/em/strikethrough span wraps across lines in the source file, sav...

Open Graph Description: Summary In the id web editor's markdown ↔ ProseMirror codec (pkgs/id/src/web/markdown.rs), a single-mark span that crosses a soft line break corrupts on save. When a strong/em/strikethrough span wr...

X Description: Summary In the id web editor's markdown ↔ ProseMirror codec (pkgs/id/src/web/markdown.rs), a single-mark span that crosses a soft line break corrupts on save. When a strong/em/strikethrough spa...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"id(web): marked spans crossing a soft line break corrupt or fragment on save — single-mark, non-fixpoint","articleBody":"## Summary\n\nIn the id web editor's markdown ↔ ProseMirror codec (`pkgs/id/src/web/markdown.rs`), a **single-mark span that crosses a soft line break** corrupts on save. When a strong/em/strikethrough span wraps across lines in the source file, saving multiplies the delimiters, inserts ` ` entities, and the result is **not a fixpoint** — every subsequent save makes it worse. A link spanning a soft break does not corrupt but **fragments** into one link per word, including a link whose entire text is a single space.\n\nThis is distinct from #968: that issue needs *different overlapping* mark sets on adjacent nodes and notes that single-mark cases round-trip cleanly. Here every text node carries the *identical* single mark — the trigger is the soft break inside the span, which is ordinary wrapped prose (any bold sentence longer than one line).\n\n## Evidence (verified this run on main 24261355)\n\nStandalone probe crate compiling the verbatim codec from `pkgs/id/src/web/markdown.rs`, markdown → ProseMirror → markdown, twice (logs: goal workspace `hidden_files/probe-2026-10-26-1015/out2.log`):\n\n| Input | After 1st save | After 2nd save |\n|---|---|---|\n| `**bold\\nmore**` | `**bold**** ****more**` | `**bold**\\*\\* \\***more**` (changes again) |\n| `*em\\nmore*` | `*em** **more*` | `*em*\\* \\**more*` (changes again) |\n| `~~gone\\naway~~` | `~~gone~~~~ ~~~~away~~` | `~~gone\\~\\~\\~\\~ \\~\\~\\~\\~away~~` (changes again) |\n| `[a\\nb](https://e.com \"T\")` | `[a](https://e.com \"T\")[ ](https://e.com \"T\")[b](https://e.com \"T\")` | stable, but fragmented |\n\nThe parse is faithful: `**bold\\nmore**` parses to three text nodes — `bold` [strong], ` ` [strong], `more` [strong]. The middle node comes from the `NodeValue::SoftBreak` arm (markdown.rs:238-241), which emits a standalone `\" \"` text node carrying the active marks. On the emit side that whitespace-only marked node is rendered by `create_marked_text` / `build_mark_chain` (markdown.rs:1117 / :1167) as its own delimited span (`**** ****`), and re-parsing the result creates new mark boundaries — hence the per-save growth. Links take the same path and fragment instead of corrupting.\n\n## Why it matters\n\nWrapped bold/italic/linked text is everywhere in real notes and docs. Opening such a file in the web editor and saving it — even with no edits — rewrites it into entity-escaped, delimiter-doubled text (or a chain of one-word links), and repeated saves compound the damage. Silent data corruption of user documents.\n\n## Suggested directions (either may be sufficient; check both)\n\n- Parse side: fold a soft break into the adjacent text node (append `\" \"` to the previous text node when it carries the same marks) instead of emitting a standalone marked `\" \"` node.\n- Emit side: merge adjacent text nodes with identical mark sets before building the mark chain, and/or never emit a delimited span for a whitespace-only node.\n- Coordinate with #968 — the emit-side half of this may share its fix in `build_mark_chain`; if that fix demonstrably covers these inputs too, close this as a duplicate with a pointer. A fix for #968's listed inputs alone does **not** cover this issue (no nesting here).\n\n## Acceptance criteria\n\n- [ ] `**bold\\nmore**`, `*em\\nmore*`, `~~gone\\naway~~` round-trip open → save to the single-line normalized form (`**bold more**` etc.) with no ` ` and no multiplied delimiters, and a second round-trip is a fixpoint.\n- [ ] `[a\\nb](url)` (with and without title) round-trips as one link, not three.\n- [ ] New unit tests in `pkgs/id/src/web/markdown.rs` cover marked spans crossing soft breaks, including the double round-trip property.\n- [ ] Existing codec tests still pass; #944 / #953 / #968 cases do not regress.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-10-26T15:18:17Z","url":"https://github.com/developing-today/code/issues/981"}

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:63695a76-c2be-c529-4b07-9ce8d5841bcc
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBFFE:1B5128:7B6CF9:A65974:6B063521
html-safe-nonced8a6caae3be16ab4335cfcda81c879dd48385d86e97722b623a67958ecf8c60b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkZFOjFCNTEyODo3QjZDRjk6QTY1OTc0OjZCMDYzNTIxIiwidmlzaXRvcl9pZCI6Ijg4MTg5OTczNzE2Mjg1NjU3OTMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac58a5eb7c8de49e25d7b1c29f293d316ec5c80958ab29652183dd5d1b0dc5173f
hovercard-subject-tagissue:6042608997
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/981/issue_layout
twitter:imagehttps://opengraph.githubassets.com/1067ed35528cb76b5e2e288190d4e0c4ffe9529b9bef8c5f551242b2b61db204/developing-today/code/issues/981
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1067ed35528cb76b5e2e288190d4e0c4ffe9529b9bef8c5f551242b2b61db204/developing-today/code/issues/981
og:image:altSummary In the id web editor's markdown ↔ ProseMirror codec (pkgs/id/src/web/markdown.rs), a single-mark span that crosses a soft line break corrupts on save. When a strong/em/strikethrough span wr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamedezren39
hostnamegithub.com
expected-hostnamegithub.com
Nonec3584c853cd39700ecff6e2cf8364295ffdb5313e571046c41cd2479270f7df0
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
release9eb3bb1597d09170a5f282cd38ae376dee1a5ec1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/developing-today/code/issues/981#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeveloping-today%2Fcode%2Fissues%2F981
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%2F981
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/981
Reloadhttps://github.com/developing-today/code/issues/981
Reloadhttps://github.com/developing-today/code/issues/981
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 requests152 (152)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/981
New issuehttps://github.com/login?return_to=https://github.com/developing-today/code/issues/981
#1011https://github.com/developing-today/code/pull/1011
id(web): marked spans crossing a soft line break corrupt or fragment on save — single-mark, non-fixpointhttps://github.com/developing-today/code/issues/981#top
#1011https://github.com/developing-today/code/pull/1011
https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%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
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/981#issue-6042608997
#968https://github.com/developing-today/code/issues/968
2426135https://github.com/developing-today/code/commit/24261355092d8510398c356e284d7b9050a44913
id(web): nested marks corrupt on save — em/strike/code inside strong/em gain entities and multiplied delimiters, several non-fixpoint #968https://github.com/developing-today/code/issues/968
id(web): nested marks corrupt on save — em/strike/code inside strong/em gain entities and multiplied delimiters, several non-fixpoint #968https://github.com/developing-today/code/issues/968
id(web): bold links flip spelling on every save — strong+link marks have no round-trip fixpoint #944https://github.com/developing-today/code/issues/944
id(web): inline code combined with another mark drops the other mark on save — code+link loses the link #953https://github.com/developing-today/code/issues/953
id(web): nested marks corrupt on save — em/strike/code inside strong/em gain entities and multiplied delimiters, several non-fixpoint #968https://github.com/developing-today/code/issues/968
Nexthttps://github.com/developing-today/code/issues/981?timeline_page=1
https://github.com/apps/developing-today
developing-todayhttps://github.com/apps/developing-today
on Oct 26, 2026https://github.com/developing-today/code/issues/981#issuecomment-6419719479
developing.todayhttps://kaneo.security.cab
CODE-166https://kaneo.security.cab/dashboard/workspace/6oQgIkST0YGrCcxrnhbHPOUCfgdD3cqE/project/pfcq432h349r20up18gttfv4/task/w7huie52ymj6vv5z5mtcftqo
dezren39https://github.com/dezren39
queue/queuedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fqueued%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%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
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
on Oct 26, 2026https://github.com/developing-today/code/issues/981#event-34274205253
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/981#issuecomment-6419734927
2426135https://github.com/developing-today/code/commit/24261355092d8510398c356e284d7b9050a44913
id(web): nested marks corrupt on save — em/strike/code inside strong/em gain entities and multiplied delimiters, several non-fixpoint #968https://github.com/developing-today/code/issues/968
github-actionshttps://github.com/apps/github-actions
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/981#event-34274237634
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 26, 2026https://github.com/developing-today/code/issues/981#event-34301242146
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
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/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fparked%22
queue/parkedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fparked%22
on Oct 26, 2026https://github.com/developing-today/code/issues/981#event-34301507119
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/981#issuecomment-6426966323
test(id-web): softbreak marked-span round-trip regression tests (#981) #1011https://github.com/developing-today/code/pull/1011
id(web): marked spans crossing a soft line break corrupt or fragment on save — single-mark, non-fixpoint #981https://github.com/developing-today/code/issues/981
fix(id-web): preserve other marks on inline code on save (#953) #999https://github.com/developing-today/code/pull/999
id(web): marked spans crossing a soft line break corrupt or fragment on save — single-mark, non-fixpoint #981https://github.com/developing-today/code/issues/981
test(id-web): softbreak marked-span round-trip regression tests (#981) #1011https://github.com/developing-today/code/pull/1011
id(web): marked spans crossing a soft line break corrupt or fragment on save — single-mark, non-fixpoint #981https://github.com/developing-today/code/issues/981
test(id-web): softbreak marked-span round-trip regression tests (#981) #1011https://github.com/developing-today/code/pull/1011
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/981#event-34303616716
test(id-web): softbreak marked-span round-trip regression tests (#981) (https://github.com/developing-today/code/commit/925770d74880ee858b7934f3f69c806ab2e4aff4
#981https://github.com/developing-today/code/issues/981
925770dhttps://github.com/developing-today/code/commit/925770d74880ee858b7934f3f69c806ab2e4aff4
dezren39https://github.com/dezren39
completedhttps://github.com/developing-today/code/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#1011https://github.com/developing-today/code/pull/1011
on Oct 26, 2026https://github.com/developing-today/code/issues/981#event-34303617030
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 Oct 26, 2026https://github.com/developing-today/code/issues/981#event-34303619557
https://github.com/dezren39
dezren39https://github.com/dezren39
on Oct 26, 2026https://github.com/developing-today/code/issues/981#issuecomment-6426985972
test(id-web): softbreak marked-span round-trip regression tests (#981) #1011https://github.com/developing-today/code/pull/1011
fix(id-web): preserve other marks on inline code on save (#953) #999https://github.com/developing-today/code/pull/999
925770dhttps://github.com/developing-today/code/commit/925770d74880ee858b7934f3f69c806ab2e4aff4
test(id-web): softbreak marked-span round-trip regression tests (#981) #1011https://github.com/developing-today/code/pull/1011
fix(id-web): preserve other marks on inline code on save (#953) #999https://github.com/developing-today/code/pull/999
dezren39https://github.com/dezren39
status/in-progresshttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22status%2Fin-progress%22
queue/claimedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22queue%2Fclaimed%22
work/assignedhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22work%2Fassigned%22
on Oct 26, 2026https://github.com/developing-today/code/issues/981#event-34303687988
Sign up for freehttps://github.com/signup?return_to=https://github.com/developing-today/code/issues/981
Sign in to commenthttps://github.com/login?return_to=https://github.com/developing-today/code/issues/981
dezren39https://github.com/dezren39
app/idhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22app%2Fid%22
kind/bughttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22kind%2Fbug%22
priority/normalhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22priority%2Fnormal%22
source/creatorhttps://github.com/developing-today/code/issues?q=state%3Aopen%20label%3A%22source%2Fcreator%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
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.