Skip to main content

extract_math

Function extract_math 

Source
pub fn extract_math(source: &str) -> (String, Vec<MathPlaceholder>)
Expand description

Pre-processes Markdown source, extracting math expressions.

Returns (processed_source, Vec<MathPlaceholder>). The processed source has math replaced with MATH_PLACEHOLDER_{n} tokens.