use mini_markdown::render; #[test] fn commonmark_test_43_thematic_breaks() { let test_html = render("***\n---\n___\n"); let reference_html = "
+++
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_45_thematic_breaks() { let test_html = render("===\n"); let reference_html = "===
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_46_thematic_breaks() { let test_html = render("--\n**\n__\n"); let reference_html = "--\n**\n__
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_47_thematic_breaks() { let test_html = render(" ***\n ***\n ***\n"); let reference_html = "***\n
\n";
assert_eq!(test_html, reference_html);
}
#[test]
fn commonmark_test_49_thematic_breaks() {
let test_html = render("Foo\n ***\n");
let reference_html = "Foo\n***
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_50_thematic_breaks() { let test_html = render("_____________________________________\n"); let reference_html = "_ _ _ _ a
\na------
\n---a---
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_56_thematic_breaks() { let test_html = render(" *-*\n"); let reference_html = "-
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_57_thematic_breaks() { let test_html = render("- foo\n***\n- bar\n"); let reference_html = "Foo
\nbar
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_59_thematic_breaks() { let test_html = render("Foo\n---\nbar\n"); let reference_html = "bar
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_60_thematic_breaks() { let test_html = render("* Foo\n* * *\n* Bar\n"); let reference_html = "