extern crate markdown; use markdown::to_html; use pretty_assertions::assert_eq; #[test] fn text() { assert_eq!( to_html("hello $.;'there"), "

hello $.;'there

", "should support ascii text" ); assert_eq!( to_html("Foo χρῆν"), "

Foo χρῆν

", "should support unicode text" ); assert_eq!( to_html("Multiple spaces"), "

Multiple spaces

", "should preserve internal spaces verbatim" ); }