pub fn is_within_math_block( text: &str, position: usize, single_dollar_enabled: bool, ) -> bool
Whether position sits inside a $$ math span (or $ inline math when enabled).
position
$$
$