Function spandex::parser::combinators::parse_title [−][src]
pub fn parse_title(input: Span<'_>) -> IResult<Span<'_>, Ast>Expand description
Parses a whole title.
let input = Span::new("# This is my title");
let title = parse_title(input).unwrap().1;
assert_eq!(title, Ast::Title { level: 0, children: vec![
Ast::Text(String::from("This is my title"))]
});