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 = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_109_indented_code_blocks() { let test_html = render("1. foo\n\n - bar\n"); let reference_html = "
    \n
  1. \n

    foo

    \n\n
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_110_indented_code_blocks() { let test_html = render(" \n *hi*\n\n - one\n"); let reference_html = "
<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
\n

bar

\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 = "

Heading

\n
foo\n
\n

Heading

\n
foo\n
\n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_116_indented_code_blocks() { let test_html = render(" foo\n bar\n"); let reference_html = "
    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); }