use mini_markdown::render; #[test] fn commonmark_test_192_link_reference_definitions() { let test_html = render("[foo]: /url \"title\"\n\n[foo]\n"); let reference_html = "
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_193_link_reference_definitions() { let test_html = render(" [foo]: \n /url \n 'the title' \n\n[foo]\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_194_link_reference_definitions() { let test_html = render("[Foo*bar\\]]:my_(url) 'title (with parens)'\n\n[Foo*bar\\]]\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_195_link_reference_definitions() { let test_html = render("[Foo bar]:\n[foo]: /url 'title
\nwith blank line'
\n[foo]
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_198_link_reference_definitions() { let test_html = render("[foo]:\n/url\n\n[foo]\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_199_link_reference_definitions() { let test_html = render("[foo]:\n\n[foo]\n"); let reference_html = "[foo]:
\n[foo]
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_200_link_reference_definitions() { let test_html = render("[foo]: <>\n\n[foo]\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_201_link_reference_definitions() { let test_html = render("[foo]:[foo]:
[foo]
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_202_link_reference_definitions() { let test_html = render("[foo]: /url\\bar\\*baz \"foo\\\"bar\\baz\"\n\n[foo]\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_203_link_reference_definitions() { let test_html = render("[foo]\n\n[foo]: url\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_204_link_reference_definitions() { let test_html = render("[foo]\n\n[foo]: first\n[foo]: second\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_205_link_reference_definitions() { let test_html = render("[FOO]: /url\n\n[Foo]\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_206_link_reference_definitions() { let test_html = render("[ΑΓΩ]: /φου\n\n[αγω]\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_207_link_reference_definitions() { let test_html = render("[foo]: /url\n"); let reference_html = ""; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_208_link_reference_definitions() { let test_html = render("[\nfoo\n]: /url\nbar\n"); let reference_html = "bar
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_209_link_reference_definitions() { let test_html = render("[foo]: /url \"title\" ok\n"); let reference_html = "[foo]: /url "title" ok
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_210_link_reference_definitions() { let test_html = render("[foo]: /url\n\"title\" ok\n"); let reference_html = ""title" ok
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_211_link_reference_definitions() { let test_html = render(" [foo]: /url \"title\"\n\n[foo]\n"); let reference_html = "[foo]: /url "title"\n
\n[foo]
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_212_link_reference_definitions() { let test_html = render("```\n[foo]: /url\n```\n\n[foo]\n"); let reference_html = "[foo]: /url\n
\n[foo]
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_213_link_reference_definitions() { let test_html = render("Foo\n[bar]: /baz\n\n[bar]\n"); let reference_html = "Foo\n[bar]: /baz
\n[bar]
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_214_link_reference_definitions() { let test_html = render("# [Foo]\n[foo]: /url\n> bar\n"); let reference_html = "\n\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_215_link_reference_definitions() { let test_html = render("[foo]: /url\nbar\n===\n[foo]\n"); let reference_html = "bar
\n
===\nfoo
\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_217_link_reference_definitions() { let test_html = render("[foo]: /foo-url \"foo\"\n[bar]: /bar-url\n \"bar\"\n[baz]: /baz-url\n\n[foo],\n[bar],\n[baz]\n"); let reference_html = "\n"; assert_eq!(test_html, reference_html); } #[test] fn commonmark_test_218_link_reference_definitions() { let test_html = render("[foo]\n\n> [foo]: /url\n"); let reference_html = "\n\n\n"; assert_eq!(test_html, reference_html); }