use mini_markdown::render; #[test] fn commonmark_test_481_links() { let test_html = render("[link](/uri \"title\")\n"); let reference_html = "
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_482_links() { let test_html = render("[link](/uri)\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_483_links() { let test_html = render("[](./target.md)\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_484_links() { let test_html = render("[link]()\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_485_links() { let test_html = render("[link](<>)\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_486_links() { let test_html = render("[]()\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_487_links() { let test_html = render("[link](/my uri)\n"); let reference_html = "[link](/my uri)
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_488_links() { let test_html = render("[link]()\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_489_links() { let test_html = render("[link](foo\nbar)\n"); let reference_html = "[link](foo\nbar)
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_490_links() { let test_html = render("[link]([link](
[link](<foo>)
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_493_links() { let test_html = render("[a](\n[a](c)\n"); let reference_html = "[a](<b)c\n[a](<b)c>\n[a](c)
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_494_links() { let test_html = render("[link](\\(foo\\))\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_495_links() { let test_html = render("[link](foo(and(bar)))\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_496_links() { let test_html = render("[link](foo(and(bar))\n"); let reference_html = "[link](foo(and(bar))
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_497_links() { let test_html = render("[link](foo\\(and\\(bar\\))\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_498_links() { let test_html = render("[link]([link](/url "title "and" title")
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_508_links() { let test_html = render("[link](/url \'title \"and\" title\')\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_509_links() { let test_html = render("[link]( /uri\n \"title\" )\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_510_links() { let test_html = render("[link] (/uri)\n"); let reference_html = "[link] (/uri)
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_511_links() { let test_html = render("[link [foo [bar]]](/uri)\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_512_links() { let test_html = render("[link] bar](/uri)\n"); let reference_html = "[link] bar](/uri)
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_513_links() { let test_html = render("[link [bar](/uri)\n"); let reference_html = "[link bar
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_514_links() { let test_html = render("[link \\[bar](/uri)\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_515_links() { let test_html = render("[link *foo **bar** `#`*](/uri)\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_516_links() { let test_html = render("[![moon](moon.jpg)](/uri)\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_517_links() { let test_html = render("[foo [bar](/uri)](/uri)\n"); let reference_html = "[foo bar](/uri)
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_518_links() { let test_html = render("[foo *[bar [baz](/uri)](/uri)*](/uri)\n"); let reference_html = "[foo [bar baz](/uri)](/uri)
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_519_links() { let test_html = render("![[[foo](uri1)](uri2)](uri3)\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_520_links() { let test_html = render("*[foo*](/uri)\n"); let reference_html = "*foo*
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_521_links() { let test_html = render("[foo *bar](baz*)\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_522_links() { let test_html = render("*foo [bar* baz]\n"); let reference_html = "foo [bar baz]
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_523_links() { let test_html = render("[foo[foo
[foo](/uri)
[foohttp://example.com/?search=](uri)
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_526_links() { let test_html = render("[foo][bar]\n\n[bar]: /url \"title\"\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_527_links() { let test_html = render("[link [foo [bar]]][ref]\n\n[ref]: /uri\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_528_links() { let test_html = render("[link \\[bar][ref]\n\n[ref]: /uri\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_529_links() { let test_html = render("[link *foo **bar** `#`*][ref]\n\n[ref]: /uri\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_530_links() { let test_html = render("[![moon](moon.jpg)][ref]\n\n[ref]: /uri\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_531_links() { let test_html = render("[foo [bar](/uri)][ref]\n\n[ref]: /uri\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_532_links() { let test_html = render("[foo *bar [baz][ref]*][ref]\n\n[ref]: /uri\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_533_links() { let test_html = render("*[foo*][ref]\n\n[ref]: /uri\n"); let reference_html = "*foo*
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_534_links() { let test_html = render("[foo *bar][ref]*\n\n[ref]: /uri\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_535_links() { let test_html = render("[foo[foo
[foo][ref]
[foohttp://example.com/?search=][ref]
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_538_links() { let test_html = render("[foo][BaR]\n\n[bar]: /url \"title\"\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_539_links() { let test_html = render("[ẞ]\n\n[SS]: /url\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_540_links() { let test_html = render("[Foo\n bar]: /url\n\n[Baz][Foo bar]\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_541_links() { let test_html = render("[foo] [bar]\n\n[bar]: /url \"title\"\n"); let reference_html = "[foo] bar
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_542_links() { let test_html = render("[foo]\n[bar]\n\n[bar]: /url \"title\"\n"); let reference_html = "[foo]\nbar
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_543_links() { let test_html = render("[foo]: /url1\n\n[foo]: /url2\n\n[bar][foo]\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_544_links() { let test_html = render("[bar][foo\\!]\n\n[foo!]: /url\n"); let reference_html = "[bar][foo!]
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_545_links() { let test_html = render("[foo][ref[]\n\n[ref[]: /uri\n"); let reference_html = "[foo][ref[]
\n[ref[]: /uri
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_546_links() { let test_html = render("[foo][ref[bar]]\n\n[ref[bar]]: /uri\n"); let reference_html = "[foo][ref[bar]]
\n[ref[bar]]: /uri
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_547_links() { let test_html = render("[[[foo]]]\n\n[[[foo]]]: /url\n"); let reference_html = "[[[foo]]]
\n[[[foo]]]: /url
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_548_links() { let test_html = render("[foo][ref\\[]\n\n[ref\\[]: /uri\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_549_links() { let test_html = render("[bar\\\\]: /uri\n\n[bar\\\\]\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_550_links() { let test_html = render("[]\n\n[]: /uri\n"); let reference_html = "[]
\n[]: /uri
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_551_links() { let test_html = render("[\n ]\n\n[\n ]: /uri\n"); let reference_html = "[\n]
\n[\n]: /uri
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_552_links() { 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_553_links() { 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_554_links() { 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_555_links() { let test_html = render("[foo] \n[]\n\n[foo]: /url \"title\"\n"); let reference_html = "foo\n[]
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_556_links() { 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_557_links() { 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_558_links() { let test_html = render("[[*foo* bar]]\n\n[*foo* bar]: /url \"title\"\n"); let reference_html = "[foo bar]
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_559_links() { let test_html = render("[[bar [foo]\n\n[foo]: /url\n"); let reference_html = "[[bar foo
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_560_links() { 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_561_links() { let test_html = render("[foo] bar\n\n[foo]: /url\n"); let reference_html = "foo bar
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_562_links() { 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_563_links() { let test_html = render("[foo*]: /url\n\n*[foo*]\n"); let reference_html = "*foo*
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_564_links() { let test_html = render("[foo][bar]\n\n[foo]: /url1\n[bar]: /url2\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_565_links() { let test_html = render("[foo][]\n\n[foo]: /url1\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_566_links() { let test_html = render("[foo]()\n\n[foo]: /url1\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_567_links() { let test_html = render("[foo](not a link)\n\n[foo]: /url1\n"); let reference_html = "foo(not a link)
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_568_links() { let test_html = render("[foo][bar][baz]\n\n[baz]: /url\n"); let reference_html = "[foo]bar
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_569_links() { let test_html = render("[foo][bar][baz]\n\n[baz]: /url1\n[bar]: /url2\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_570_links() { let test_html = render("[foo][bar][baz]\n\n[baz]: /url1\n[foo]: /url2\n"); let reference_html = "[foo]bar
\n"; assert_eq!(test_html, reference_html); }