pub fn build_emphasis_plan(events: &[IrEvent]) -> EmphasisPlanExpand description
Convert the IR’s delim-run match decisions into an EmphasisPlan,
preserving the byte-keyed disposition shape the existing emission walk
consumes.
Each match on a DelimRun produces one entry in
the plan: the opener side records Open with the partner’s source
byte and length; the closer side records Close. Bytes within a run
that are not covered by any match get a Literal entry, which the
emission walk uses to coalesce unmatched delimiter bytes with
surrounding plain text.