pub fn try_parse_display_math(text: &str) -> Option<(usize, &str)>Expand description
Try to parse display math ($$…$$) starting at the current position. Returns the number of characters consumed and the math content if successful. Display math can span multiple lines in inline contexts.
Per Pandoc spec (tex_math_dollars extension):
- Opening delimiter is at least $$
- Closing delimiter must have at least as many $ as opening
- Content can span multiple lines