lib: add test link_reference_multiline
This commit is contained in:
parent
66fd099af1
commit
718f2df60e
1 changed files with 23 additions and 0 deletions
23
src/lib.rs
23
src/lib.rs
|
@ -1442,6 +1442,29 @@ mod test {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn link_reference_multiline() {
|
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!(
|
test_parse!(
|
||||||
concat!(
|
concat!(
|
||||||
"[text][tag]\n",
|
"[text][tag]\n",
|
||||||
|
|
Loading…
Reference in a new issue