extern crate markdown; use markdown::to_html; use pretty_assertions::assert_eq; #[test] fn soft_break() { assert_eq!( to_html("foo\nbaz"), "
foo\nbaz
", "should support line endings" ); assert_eq!( to_html("foo \n baz"), "foo\nbaz
", "should trim spaces around line endings" ); }