use mini_markdown::render; #[test] fn commonmark_test_253_list_items() { let test_html = render("A paragraph\nwith two lines.\n\n indented code\n\n> A block quote.\n"); let reference_html = "

A paragraph\nwith two lines.

\n
indented code\n
\n
\n

A block quote.

\n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_254_list_items() { let test_html = render("1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote.\n"); let reference_html = "
    \n
  1. \n

    A paragraph\nwith two lines.

    \n
    indented code\n
    \n
    \n

    A block quote.

    \n
    \n
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_255_list_items() { let test_html = render("- one\n\n two\n"); let reference_html = "\n

two

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_256_list_items() { let test_html = render("- one\n\n two\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_257_list_items() { let test_html = render(" - one\n\n two\n"); let reference_html = "\n
 two\n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_258_list_items() { let test_html = render(" - one\n\n two\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_259_list_items() { let test_html = render(" > > 1. one\n>>\n>> two\n"); let reference_html = "
\n
\n
    \n
  1. \n

    one

    \n

    two

    \n
  2. \n
\n
\n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_260_list_items() { let test_html = render(">>- one\n>>\n > > two\n"); let reference_html = "
\n
\n\n

two

\n
\n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_261_list_items() { let test_html = render("-one\n\n2.two\n"); let reference_html = "

-one

\n

2.two

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_262_list_items() { let test_html = render("- foo\n\n\n bar\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_263_list_items() { let test_html = render("1. foo\n\n ```\n bar\n ```\n\n baz\n\n > bam\n"); let reference_html = "
    \n
  1. \n

    foo

    \n
    bar\n
    \n

    baz

    \n
    \n

    bam

    \n
    \n
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_264_list_items() { let test_html = render("- Foo\n\n bar\n\n\n baz\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_265_list_items() { let test_html = render("123456789. ok\n"); let reference_html = "
    \n
  1. ok
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_266_list_items() { let test_html = render("1234567890. not ok\n"); let reference_html = "

1234567890. not ok

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_267_list_items() { let test_html = render("0. ok\n"); let reference_html = "
    \n
  1. ok
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_268_list_items() { let test_html = render("003. ok\n"); let reference_html = "
    \n
  1. ok
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_269_list_items() { let test_html = render("-1. not ok\n"); let reference_html = "

-1. not ok

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_270_list_items() { let test_html = render("- foo\n\n bar\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_271_list_items() { let test_html = render(" 10. foo\n\n bar\n"); let reference_html = "
    \n
  1. \n

    foo

    \n
    bar\n
    \n
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_272_list_items() { let test_html = render(" indented code\n\nparagraph\n\n more code\n"); let reference_html = "
indented code\n
\n

paragraph

\n
more code\n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_273_list_items() { let test_html = render("1. indented code\n\n paragraph\n\n more code\n"); let reference_html = "
    \n
  1. \n
    indented code\n
    \n

    paragraph

    \n
    more code\n
    \n
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_274_list_items() { let test_html = render("1. indented code\n\n paragraph\n\n more code\n"); let reference_html = "
    \n
  1. \n
     indented code\n
    \n

    paragraph

    \n
    more code\n
    \n
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_275_list_items() { let test_html = render(" foo\n\nbar\n"); let reference_html = "

foo

\n

bar

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_276_list_items() { let test_html = render("- foo\n\n bar\n"); let reference_html = "\n

bar

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_277_list_items() { let test_html = render("- foo\n\n bar\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_278_list_items() { let test_html = render("-\n foo\n-\n ```\n bar\n ```\n-\n baz\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_279_list_items() { let test_html = render("- \n foo\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_280_list_items() { let test_html = render("-\n\n foo\n"); let reference_html = "\n

foo

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_281_list_items() { let test_html = render("- foo\n-\n- bar\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_282_list_items() { let test_html = render("- foo\n- \n- bar\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_283_list_items() { let test_html = render("1. foo\n2.\n3. bar\n"); let reference_html = "
    \n
  1. foo
  2. \n
  3. \n
  4. bar
  5. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_284_list_items() { let test_html = render("*\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_285_list_items() { let test_html = render("foo\n*\n\nfoo\n1.\n"); let reference_html = "

foo\n*

\n

foo\n1.

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_286_list_items() { let test_html = render(" 1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote.\n"); let reference_html = "
    \n
  1. \n

    A paragraph\nwith two lines.

    \n
    indented code\n
    \n
    \n

    A block quote.

    \n
    \n
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_287_list_items() { let test_html = render(" 1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote.\n"); let reference_html = "
    \n
  1. \n

    A paragraph\nwith two lines.

    \n
    indented code\n
    \n
    \n

    A block quote.

    \n
    \n
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_288_list_items() { let test_html = render(" 1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote.\n"); let reference_html = "
    \n
  1. \n

    A paragraph\nwith two lines.

    \n
    indented code\n
    \n
    \n

    A block quote.

    \n
    \n
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_289_list_items() { let test_html = render(" 1. A paragraph\n with two lines.\n\n indented code\n\n > A block quote.\n"); let reference_html = "
1.  A paragraph\n    with two lines.\n\n        indented code\n\n    > A block quote.\n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_290_list_items() { let test_html = render(" 1. A paragraph\nwith two lines.\n\n indented code\n\n > A block quote.\n"); let reference_html = "
    \n
  1. \n

    A paragraph\nwith two lines.

    \n
    indented code\n
    \n
    \n

    A block quote.

    \n
    \n
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_291_list_items() { let test_html = render(" 1. A paragraph\n with two lines.\n"); let reference_html = "
    \n
  1. A paragraph\nwith two lines.
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_292_list_items() { let test_html = render("> 1. > Blockquote\ncontinued here.\n"); let reference_html = "
\n
    \n
  1. \n
    \n

    Blockquote\ncontinued here.

    \n
    \n
  2. \n
\n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_293_list_items() { let test_html = render("> 1. > Blockquote\n> continued here.\n"); let reference_html = "
\n
    \n
  1. \n
    \n

    Blockquote\ncontinued here.

    \n
    \n
  2. \n
\n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_294_list_items() { let test_html = render("- foo\n - bar\n - baz\n - boo\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_295_list_items() { let test_html = render("- foo\n - bar\n - baz\n - boo\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_296_list_items() { let test_html = render("10) foo\n - bar\n"); let reference_html = "
    \n
  1. foo\n\n
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_297_list_items() { let test_html = render("10) foo\n - bar\n"); let reference_html = "
    \n
  1. foo
  2. \n
\n\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_298_list_items() { let test_html = render("- - foo\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_299_list_items() { let test_html = render("1. - 2. foo\n"); let reference_html = "
    \n
  1. \n\n
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_300_list_items() { let test_html = render("- # Foo\n- Bar\n ---\n baz\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); }