Problem
With an unclosed fenced code block the prose/code regex finds zero blocks, so prose rules fire inside code while code rules never fire. Both directions wrong.
Where
src/scan.js (fence regex requires a closing fence; empty blocks handling).
Acceptance
Add a failing test first with an unclosed fence asserting prose rules stay silent after the opening fence (or the fence extends to EOF). Then fix.
Problem
With an unclosed fenced code block the prose/code regex finds zero blocks, so prose rules fire inside code while code rules never fire. Both directions wrong.
Where
src/scan.js(fence regex requires a closing fence; emptyblockshandling).Acceptance
Add a failing test first with an unclosed fence asserting prose rules stay silent after the opening fence (or the fence extends to EOF). Then fix.