use mini_markdown::render; #[test] fn commonmark_test_301_lists() { let test_html = render("- foo\n- bar\n+ baz\n"); let reference_html = "\n\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_302_lists() { let test_html = render("1. foo\n2. bar\n3) baz\n"); let reference_html = "
    \n
  1. foo
  2. \n
  3. bar
  4. \n
\n
    \n
  1. baz
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_303_lists() { let test_html = render("Foo\n- bar\n- baz\n"); let reference_html = "

Foo

\n\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_304_lists() { let test_html = render("The number of windows in my house is\n14. The number of doors is 6.\n"); let reference_html = "

The number of windows in my house is\n14. The number of doors is 6.

\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_305_lists() { let test_html = render("The number of windows in my house is\n1. The number of doors is 6.\n"); let reference_html = "

The number of windows in my house is

\n
    \n
  1. The number of doors is 6.
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_306_lists() { 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_307_lists() { let test_html = render("- foo\n - bar\n - baz\n\n\n bim\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_308_lists() { let test_html = render("- foo\n- bar\n\n\n\n- baz\n- bim\n"); let reference_html = "\n\n\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_309_lists() { let test_html = render("- foo\n\n notcode\n\n- foo\n\n\n\n code\n"); let reference_html = "\n\n
code\n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_310_lists() { let test_html = render("- a\n - b\n - c\n - d\n - e\n - f\n- g\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_311_lists() { let test_html = render("1. a\n\n 2. b\n\n 3. c\n"); let reference_html = "
    \n
  1. \n

    a

    \n
  2. \n
  3. \n

    b

    \n
  4. \n
  5. \n

    c

    \n
  6. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_312_lists() { let test_html = render("- a\n - b\n - c\n - d\n - e\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_313_lists() { let test_html = render("1. a\n\n 2. b\n\n 3. c\n"); let reference_html = "
    \n
  1. \n

    a

    \n
  2. \n
  3. \n

    b

    \n
  4. \n
\n
3. c\n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_314_lists() { let test_html = render("- a\n- b\n\n- c\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_315_lists() { let test_html = render("* a\n*\n\n* c\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_316_lists() { let test_html = render("- a\n- b\n\n c\n- d\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_317_lists() { let test_html = render("- a\n- b\n\n [ref]: /url\n- d\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_318_lists() { let test_html = render("- a\n- ```\n b\n\n\n ```\n- c\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_319_lists() { let test_html = render("- a\n - b\n\n c\n- d\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_320_lists() { let test_html = render("* a\n > b\n >\n* c\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_321_lists() { let test_html = render("- a\n > b\n ```\n c\n ```\n- d\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_322_lists() { let test_html = render("- a\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_323_lists() { let test_html = render("- a\n - b\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_324_lists() { let test_html = render("1. ```\n foo\n ```\n\n bar\n"); let reference_html = "
    \n
  1. \n
    foo\n
    \n

    bar

    \n
  2. \n
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_325_lists() { let test_html = render("* foo\n * bar\n\n baz\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_326_lists() { let test_html = render("- a\n - b\n - c\n\n- d\n - e\n - f\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); }