diff --git a/src/lib.rs b/src/lib.rs index 6c13472..e393f47 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1442,6 +1442,29 @@ mod test { #[test] fn link_reference_multiline() { + test_parse!( + concat!( + "> [text][a\n", // + "> b]\n", // + "\n", // + "[a b]: url\n", // + ), + Start(Blockquote, Attributes::new()), + Start(Paragraph, Attributes::new()), + Start( + Link("url".into(), LinkType::Span(SpanLinkType::Reference)), + Attributes::new() + ), + Str("text".into()), + End(Link("url".into(), LinkType::Span(SpanLinkType::Reference))), + End(Paragraph), + End(Blockquote), + Blankline, + ); + } + + #[test] + fn link_definition_multiline() { test_parse!( concat!( "[text][tag]\n",