lib: add test link_reference_multiline

This commit is contained in:
Noah Hellman 2023-03-01 22:37:36 +01:00
parent 66fd099af1
commit 718f2df60e

View file

@ -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",