pub fn math_byte_ranges(content: &str) -> Vec<(usize, usize)>Expand description
All math byte ranges in content: line-start $$...$$ display blocks
plus single-$ inline spans. Ranges are half-open [start, end) and may
be unordered relative to each other; membership is by any-containment.
Precompute this once when classifying many positions in one document
(e.g. every emphasis span). is_in_math_context is the single-shot
equivalent and is defined in terms of the same two sources.