Another fairly minor issue with tag parsing is that Orgize will accept non-alphanumeric characters (e.g., parentheses) in tags. On the plus side, it handles Unicode alphanumeric characters correctly, the same way org-mode does:
fn main() {
// Bad
let org = orgize::Org::parse("* a :(:");
assert!(org.headlines().next().unwrap().title(&org).tags.is_empty());
// Good -- 郫县豆瓣酱 is alphanumeric.
let org = orgize::Org::parse("* a :郫县豆瓣酱:");
assert_eq!(vec!("郫县豆瓣酱"), org.headlines().next().unwrap().title(&org).tags);
}
Another fairly minor issue with tag parsing is that Orgize will accept non-alphanumeric characters (e.g., parentheses) in tags. On the plus side, it handles Unicode alphanumeric characters correctly, the same way org-mode does: