Repository navigation
Description
Numbered-list items with blank-line-separated, indented continuation content are split into separate lists in preview. After a visual edit, saving also removes the continuation indentation and restarts each list at 1. This affects instructional lists containing code blocks, but reproduces without any code or optional renderer dependency.
Validated on main at d50e1fd1ad080fadf416098a582fe0a277d1ad43 (package version 0.2.1), 2026-09-16 UTC. Environment: macOS 26.5.2, arm64.
Reproduction
Open this synthetic Markdown in visual mode:
1. First
Continuation
2. Second
More text
3. ThirdObserve the numbering, append updated to Third, save, and inspect the source.
Expected: one ordered list with three items; the continuation paragraphs remain within their respective items. Serialization should preserve that structure.
Observed: separate list segments each display item 1, continuation paragraphs are outside the list items, and the outgoing save payload is:
1. First
Continuation
1. Second
More text
1. Third updatedCause and suggested scope
The blank-line lookahead recognizes following list markers and some math blocks, but ordinary continuation paragraphs fall through to closing all lists. Serialization then reflects the already flattened DOM.
Handle list continuation blocks according to their container indentation, and pair the parser change with block-aware list serialization. Keep this review distinct from the smaller fence-recognition change: accepting spaces before a fence alone cannot repair list ownership or numbering.
Regression coverage should include loose ordered/unordered lists, continuation paragraphs, nested lists, code blocks, math blocks, item numbering, and save/source-mode round trips. Existing mixed-nested-list tests passed in the audit but do not catch this continuation case.
Validation boundary
Reproduced using the production webview generator and real keyboard/save handling in Chromium. Saved content was captured at a mocked VS Code API boundary; no installed-extension filesystem save was exercised. The reproduction contains synthetic text only.
Activity
BinaryOutlook commentedon Sep 16, 2026
The follow-up investigation in PR #9 confirms that fence recognition and list ownership need separate changes. With the fence fix applied, two- and three-space code blocks render, but they still sit outside the list item; ordered segments restart at one. A list starting at
10.needs four spaces of content indentation and still does not render the fence as a block.The parser currently closes lists before ordinary continuation content and fences. The serializer separately treats most item content as inline and starts ordered numbering at one. Both sides need a coordinated change based on each item's content indentation, with child blocks retained in order.
Synthetic cases, observed results, and proposed scope. This issue remains open and requires a separate implementation review.
BinaryOutlook commentedon Sep 27, 2026
PR #80 audit progress: a loose ordered-list continuation now survives editing
A representative continuation case passed on
ffbdad524d393aa783760f4829cb995d8b9d6405during the 2026-09-27 audit:Appending
!to Second preserved a single ordered list starting at 3, kept Continued inside the first item, and emitted:This was tested in the unmodified production browser fixture with Chrome 154.0.8037.57 / Node 24.21.0 on macOS ARM64, using keyboard input, outgoing save capture and simulated reopening. It is candidate progress for this fixture, not full closure of #5's nested/code/math/native-host matrix or proof of merged/released behavior.
Keep the issue open until the agreed scope is validated. The audit also found an ordered-checkbox serialization regression, which is tracked in #82 rather than folded into continuation ownership.