use mini_markdown::render; #[test] fn commonmark_test_571_images() { let test_html = render("![foo](/url \"title\")\n"); let reference_html = "
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_572_images() { let test_html = render("![foo *bar*]\n\n[foo *bar*]: train.jpg \"train & tracks\"\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_573_images() { let test_html = render("![foo ![bar](/url)](/url2)\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_574_images() { let test_html = render("![foo [bar](/url)](/url2)\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_575_images() { let test_html = render("![foo *bar*][]\n\n[foo *bar*]: train.jpg \"train & tracks\"\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_576_images() { let test_html = render("![foo *bar*][foobar]\n\n[FOOBAR]: train.jpg \"train & tracks\"\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_577_images() { let test_html = render("![foo](train.jpg)\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_578_images() { let test_html = render("My ![foo bar](/path/to/train.jpg \"title\" )\n"); let reference_html = "My
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_579_images() { let test_html = render("![foo](\n[]
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_587_images() { let test_html = render("![foo]\n\n[foo]: /url \"title\"\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_588_images() { let test_html = render("![*foo* bar]\n\n[*foo* bar]: /url \"title\"\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_589_images() { let test_html = render("![[foo]]\n\n[[foo]]: /url \"title\"\n"); let reference_html = "![[foo]]
\n[[foo]]: /url "title"
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_590_images() { let test_html = render("![Foo]\n\n[foo]: /url \"title\"\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_591_images() { let test_html = render("!\\[foo]\n\n[foo]: /url \"title\"\n"); let reference_html = "![foo]
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_592_images() { let test_html = render("\\![foo]\n\n[foo]: /url \"title\"\n"); let reference_html = "!foo
\n"; assert_eq!(test_html, reference_html); }