Skip to main content

parse_text

Function parse_text 

Source
pub fn parse_text(source: &str) -> Result<Node, MathError>
Expand description

Parse a whole source string under the TexText contract: a text mainland with $…$ math islands.

§Errors

As parse; additionally, math-only material in the text mainland (^, _, &, math-mode commands) is a precise MathError::Malformed telling the caller to wrap it in $…$.