Markdown parser fork with extended syntax for personal use.
at main 17 lines 334 B view raw
1use markdown::to_html; 2use pretty_assertions::assert_eq; 3 4#[test] 5fn soft_break() { 6 assert_eq!( 7 to_html("foo\nbaz"), 8 "<p>foo\nbaz</p>", 9 "should support line endings" 10 ); 11 12 assert_eq!( 13 to_html("foo \n baz"), 14 "<p>foo\nbaz</p>", 15 "should trim spaces around line endings" 16 ); 17}