parse

Function parse 

Source
pub fn parse(titles_str: &str) -> Result<Vec<String>, Error>
Expand description

Parse a TiddlyWiki title list.

assert_eq!(Ok(vec!["ok".to_string()]), parse("ok"));
assert_eq!(Ok(vec!["[[ok]]".to_string()]), parse("[[ok]]"));
assert_eq!(
  Ok(vec!["two".to_string(), "titles".to_string()]),
  parse("two titles")
);
assert_eq!(
    Ok(vec!["[[two titles]]".to_string(), "second".to_string()]),
    parse("[[two titles]] second")
);