GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

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

id(web): marked spans crossing a soft line break corrupt or fragment on save — single-mark, non-fixpoint #981

New issue
Copy link
New issue
Copy link
Closed
#1011
Closed
id(web): marked spans crossing a soft line break corrupt or fragment on save — single-mark, non-fixpoint#981
#1011
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

@dezren39
dezren39
opened on Oct 26, 2026
Issue body actions

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, 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.

This 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).

Evidence (verified this run on main 2426135)

Standalone 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):

Input After 1st save After 2nd save
**bold\nmore** **bold**** ****more** **bold**\*\* \***more** (changes again)
*em\nmore* *em** **more* *em*\* \**more* (changes again)
~~gone\naway~~ ~~gone~~~~ ~~~~away~~ ~~gone\~\~\~\~ \~\~\~\~away~~ (changes again)
[a\nb](https://e.com "T") [a](https://e.com "T")[ ](https://e.com "T")[b](https://e.com "T") stable, but fragmented

The 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.

Why it matters

Wrapped 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.

Suggested directions (either may be sufficient; check both)

  • 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.
  • 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.
  • Coordinate with id(web): nested marks corrupt on save — em/strike/code inside strong/em gain   entities and multiplied delimiters, several non-fixpoint #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 id(web): nested marks corrupt on save — em/strike/code inside strong/em gain   entities and multiplied delimiters, several non-fixpoint #968's listed inputs alone does not cover this issue (no nesting here).

Acceptance criteria

  • **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.
  • [a\nb](url) (with and without title) round-trips as one link, not three.
  • New unit tests in pkgs/id/src/web/markdown.rs cover marked spans crossing soft breaks, including the double round-trip property.
  • Existing codec tests still pass; id(web): bold links flip spelling on every save — strong+link marks have no round-trip fixpoint #944 / id(web): inline code combined with another mark drops the other mark on save — code+link loses the link #953 / id(web): nested marks corrupt on save — em/strike/code inside strong/em gain   entities and multiplied delimiters, several non-fixpoint #968 cases do not regress.

Activity

Next
  1. developing-today commented on Oct 26, 2026

    @developing-today
    developing-todayBot
    on Oct 26, 2026 – with developing.today
    Contributor
    More actions

    CODE-166

  2. dezren39
    added
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    kind/bugSomething isn't working (prefixed form of the classic bug label)
    on Oct 26, 2026
  3. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    🤖 Agent note · filed

    • Agent: new-issue-creator job
    • Session / ID: new-issue-creator run 2026-10-26 10:15 CDT (2026-10-26T15:18:56Z)
    • Found via: filed this run
    • Task: Filed after verification with a standalone probe crate compiling the verbatim codec from main 2426135 — single-mark spans crossing a soft line break corrupt (strong/em/strike, non-fixpoint) or fragment (links) on save; parse-side SoftBreak arm markdown.rs:238-241 + emit-side mark chain.
    • Expectation: effort/m — done = softbreak-crossing marked spans round-trip to the normalized single-line form as a fixpoint, links stay whole, unit tests added; coordinate with id(web): nested marks corrupt on save — em/strike/code inside strong/em gain   entities and multiplied delimiters, several non-fixpoint #968.
    • Links: probe logs goal hidden_files probe-2026-10-26-1015/out2.log; body source hidden_files/issue-code-id-softbreak-marks-body.md
  4. github-actions
    assigned
    dezren39
    on Oct 26, 2026
  5. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Oct 26, 2026
  6. 5 remaining items

  7. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Oct 26, 2026
  8. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane A shift
    • Session / ID: queue task 1132 (resume of parked claim)
    • Found via: queue claim
    • Task: Resume from pr_opened checkpoint: PR test(id-web): softbreak marked-span round-trip regression tests (#981) #1011 (tests-only regression coverage for id(web): marked spans crossing a soft line break corrupt or fragment on save — single-mark, non-fixpoint #981; fix landed in fix(id-web): preserve other marks on inline code on save (#953) #999) was parked awaiting CI. CI is now fully green and the PR is mergeable — merging it and verifying id(web): marked spans crossing a soft line break corrupt or fragment on save — single-mark, non-fixpoint #981 auto-closes.
    • Expectation: s — done = PR test(id-web): softbreak marked-span round-trip regression tests (#981) #1011 merged, id(web): marked spans crossing a soft line break corrupt or fragment on save — single-mark, non-fixpoint #981 closed, task completed.
    • Links: PR test(id-web): softbreak marked-span round-trip regression tests (#981) #1011 · branch queue/1132-981-softbreak-tests
  9. dezren39
    added a commit that references this issue on Oct 26, 2026

    test(id-web): softbreak marked-span round-trip regression tests (#981) (

    925770d
  10. dezren39
    closed this as completedin #1011on Oct 26, 2026
  11. developing-today
    added
    status:done
    and removed
    status:in-review
    on Oct 26, 2026
  12. dezren39 commented on Oct 26, 2026

    @dezren39
    dezren39
    on Oct 26, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane A shift
    • Session / ID: queue task 1132
    • Found via: queue claim (resume of parked claim)
    • Task: Merged PR test(id-web): softbreak marked-span round-trip regression tests (#981) #1011 — tests-only regression coverage for the softbreak marked-span corruption; the underlying fix had landed in PR fix(id-web): preserve other marks on inline code on save (#953) #999. CI was fully green on resume; PR merged (squash, 925770d) and this issue auto-closed.
    • Expectation: done — task 1132 completed with outcome pr_opened (merged).
    • Links: PR test(id-web): softbreak marked-span round-trip regression tests (#981) #1011 · fix PR fix(id-web): preserve other marks on inline code on save (#953) #999
  13. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/idPackage/app: id (pkgs/ or apps/ in this repo)kind/bugSomething isn't working (prefixed form of the classic bug label)priority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus:donetask/triageQueue packet kind: verify, reproduce, and route this item

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.