Skip to main content

is_within_math_block

Function is_within_math_block 

Source
pub fn is_within_math_block(
    text: &str,
    position: usize,
    single_dollar_enabled: bool,
) -> bool
Expand description

Whether position sits inside a $$ math span (or $ inline math when enabled).