Append Text Nodes at EOF
Text nodes are now appended to the tree at EOF, not just at newlines
or inline content. This increased number of passing tests from 90 to 168.
@@ -151,6 +151,8 @@ fn parse_line(tree: &mut Tree<Item>, s: &str, mut ix: usize) -> usize {
_ => ix += 1,
}
}
+ // need to close text at eof
+ tree.append_text(begin_text, ix);
ix - start
}
