extern crate html2md; use html2md::parse_html; use pretty_assertions::assert_eq; use indoc::indoc; #[test] fn test_quotes() { let md = parse_html("
here's a quote\n next line of itAnd some text after it"); assert_eq!(md, "\ > here's a quote next line of it And some text after it") } #[test] fn test_quotes2() { let md = parse_html("
here's"); assert_eq!(md, "\ > here's > > nested quote! > > a quote next line of it") } #[test] fn test_blockquotes() { let md = parse_html("nested quote!a quote\n next line of it
Quote at the start of the messageShould not crash the parser"); assert_eq!(md, "\ > Quote at the start of the message Should not crash the parser") } #[test] fn test_details() { let html = indoc! {"
Than are dreamt of in your philosophy