blob: 50dedc1b9786fcba0ed2668a3019f1fb2c9d810f (
plain) (
tree)
|
|
extern crate micromark;
use micromark::micromark;
#[test]
fn soft_break() {
assert_eq!(
micromark("foo\nbaz"),
"<p>foo\nbaz</p>",
"should support line endings"
);
assert_eq!(
micromark("foo \n baz"),
"<p>foo\nbaz</p>",
"should trim spaces around line endings"
);
}
|