pub fn parse_markdown(input: &str) -> Result<Pairs<'_, Rule>, ErrorParse>Expand description
Parses the given input markdown string and returns a pest::iterators::Pairs of rules.
§Arguments
input- A string containing the markdown content.
§Errors
- Returns an
ErrorParse::ParsingErrorif there’s an error during a parsing process.
§Returns
A result containing either the parsed pest::iterators::Pairs or an ErrorParse if the parsing fails.