extern crate micromark; use micromark::micromark; use pretty_assertions::assert_eq; #[test] fn text() { assert_eq!( micromark("hello $.;'there"), "
hello $.;'there
", "should support ascii text" ); assert_eq!( micromark("Foo χρῆν"), "Foo χρῆν
", "should support unicode text" ); assert_eq!( micromark("Multiple spaces"), "Multiple spaces
", "should preserve internal spaces verbatim" ); }