MARK-004 MED: EOF with an open fence unwinds containers before closing the fence — misnested HTML

When input ends inside a code fence that lives in a list entry, mark unwinds the container frames BEFORE closing the fence (MARK.c:730-732): - item\n ``\n code renders <li>item<pre><code> code\n</li>\n</ul>\n</code></pre> — real </li>/</ul> tags land INSIDE <pre><code> (shown verbatim as text is the least of it; the document tree is misnested). From the 2026-07-07 mark/ diagnostic review, orchestrator-verified by probe. Method Issues.

Input

Context

Goals

Constraints

WIP

Design decisions

TODOs

Blockers and bummers

Outcome