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.
\nindented code\n
\n\nA 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- \n
A paragraph\nwith two lines.
\nindented code\n
\n\nA block quote.
\n
\n \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 = "\ntwo
\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- \n
one
\ntwo
\n \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\ntwo
\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
\n2.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- \n
foo
\nbar\n
\nbaz
\n\nbam
\n
\n \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- \n
Foo
\nbar\n\n\nbaz\n
\n \n
\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- ok
\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- ok
\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- ok
\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- \n
foo
\nbar\n
\n \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
\nparagraph
\nmore 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- \n
indented code\n
\nparagraph
\nmore code\n
\n \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- \n
indented code\n
\nparagraph
\nmore code\n
\n \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
\nbar
\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 = "\nbar
\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- foo
\n- \n
bar\n
\n \n- \n
baz\n
\n \n
\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 = "\nfoo
\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- foo
\n\n- bar
\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*
\nfoo\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- \n
A paragraph\nwith two lines.
\nindented code\n
\n\nA block quote.
\n
\n \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- \n
A paragraph\nwith two lines.
\nindented code\n
\n\nA block quote.
\n
\n \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- \n
A paragraph\nwith two lines.
\nindented code\n
\n\nA block quote.
\n
\n \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- \n
A paragraph\nwith two lines.
\nindented code\n
\n\nA block quote.
\n
\n \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- A paragraph\nwith two lines.
\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- \n
\nBlockquote\ncontinued here.
\n
\n \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- \n
\nBlockquote\ncontinued here.
\n
\n \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- foo\n\n
\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- foo
\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- \n\n
\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);
}