use mini_markdown::render; #[test] fn commonmark_test_107_indented_code_blocks() { let test_html = render(" a simple\n indented code block\n"); let reference_html = "
a simple\n indented code block\n
\n";
assert_eq!(test_html, reference_html);
}
#[test]
fn commonmark_test_108_indented_code_blocks() {
let test_html = render(" - foo\n\n bar\n");
let reference_html = "foo
\nbar
\nfoo
\n<a/>\n*hi*\n\n- one\n
\n";
assert_eq!(test_html, reference_html);
}
#[test]
fn commonmark_test_111_indented_code_blocks() {
let test_html = render(" chunk1\n\n chunk2\n \n \n \n chunk3\n");
let reference_html = "chunk1\n\nchunk2\n\n\n\nchunk3\n
\n";
assert_eq!(test_html, reference_html);
}
#[test]
fn commonmark_test_112_indented_code_blocks() {
let test_html = render(" chunk1\n \n chunk2\n");
let reference_html = "chunk1\n \n chunk2\n
\n";
assert_eq!(test_html, reference_html);
}
#[test]
fn commonmark_test_113_indented_code_blocks() {
let test_html = render("Foo\n bar\n\n");
let reference_html = "Foo\nbar
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_114_indented_code_blocks() { let test_html = render(" foo\nbar\n"); let reference_html = "foo\n
\nbar
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_115_indented_code_blocks() { let test_html = render("# Heading\n foo\nHeading\n------\n foo\n----\n"); let reference_html = "foo\n
\nfoo\n
\n foo\nbar\n
\n";
assert_eq!(test_html, reference_html);
}
#[test]
fn commonmark_test_117_indented_code_blocks() {
let test_html = render("\n \n foo\n \n\n");
let reference_html = "foo\n
\n";
assert_eq!(test_html, reference_html);
}
#[test]
fn commonmark_test_118_indented_code_blocks() {
let test_html = render(" foo \n");
let reference_html = "foo \n
\n";
assert_eq!(test_html, reference_html);
}