From fec46e918e5bdf4a9137041298ab1475d2f43202 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 5 Jul 2022 14:52:49 +0200 Subject: Fix interleaving of attention/label --- tests/link_reference.rs | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'tests/link_reference.rs') diff --git a/tests/link_reference.rs b/tests/link_reference.rs index b53b99b..30fb2b5 100644 --- a/tests/link_reference.rs +++ b/tests/link_reference.rs @@ -51,12 +51,11 @@ fn link_reference() { "should not support deep links in link references" ); - // To do: link/attention interplay. - // assert_eq!( - // micromark("[ref]: /uri\n\n*[foo*][ref]"), - // "

*foo*

", - // "should prefer link references over emphasis (1)" - // ); + assert_eq!( + micromark("[ref]: /uri\n\n*[foo*][ref]"), + "

*foo*

", + "should prefer link references over emphasis (1)" + ); assert_eq!( micromark("[ref]: /uri\n\n[foo *bar][ref]"), @@ -232,12 +231,11 @@ fn link_reference() { "should “support” an escaped shortcut reference" ); - // To do: link/attention interplay. - // assert_eq!( - // micromark("[foo*]: /url\n\n*[foo*]"), - // "

*foo*

", - // "should prefer shortcut references over emphasis" - // ); + assert_eq!( + micromark("[foo*]: /url\n\n*[foo*]"), + "

*foo*

", + "should prefer shortcut references over emphasis" + ); assert_eq!( micromark("[foo]: /url1\n[bar]: /url2\n\n[foo][bar]"), -- cgit