diff options
Diffstat (limited to '')
-rw-r--r-- | tests/misc_soft_break.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/misc_soft_break.rs b/tests/misc_soft_break.rs new file mode 100644 index 0000000..1704ec2 --- /dev/null +++ b/tests/misc_soft_break.rs @@ -0,0 +1,18 @@ +extern crate micromark; +use micromark::micromark; + +#[test] +fn soft_break() { + assert_eq!( + micromark("foo\nbaz"), + "<p>foo\nbaz</p>", + "should support line endings" + ); + + // To do: trim whitespace. + // assert_eq!( + // micromark("foo \n baz"), + // "<p>foo\nbaz</p>", + // "should trim spaces around line endings" + // ); +} |