blob: 746b41de388ade380a5e11883ba8c55c544a26bf (
plain) (
tree)
|
|
extern crate micromark;
use micromark::micromark;
use pretty_assertions::assert_eq;
#[test]
fn soft_break() -> Result<(), String> {
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"
);
Ok(())
}
|