pub fn process_emphasis(events: &mut [IrEvent], dialect: Dialect)Expand description
Run the CommonMark §6.3 process_emphasis algorithm over the IR’s
delim runs. Mutates the IR in place: matched runs gain entries in their
matches vec, unmatched bytes stay implicit (the emission pass treats
any byte not covered by a match as literal text).
The algorithm tracks a per-bucket openers_bottom exclusive lower
bound to keep walk-back bounded; consume rules and the §6.2 mod-3
rejection match the reference implementation.