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/attention.rs | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'tests/attention.rs') diff --git a/tests/attention.rs b/tests/attention.rs index 6ab173b..789d860 100644 --- a/tests/attention.rs +++ b/tests/attention.rs @@ -753,19 +753,17 @@ fn attention() { ); // Rule 17. - // To do: attention/link interplay. - // assert_eq!( - // micromark("*[bar*](/url)"), - // "

*bar*

", - // "should not mismatch inside links (1)" - // ); + assert_eq!( + micromark("*[bar*](/url)"), + "

*bar*

", + "should not mismatch inside links (1)" + ); - // To do: attention/link interplay. - // assert_eq!( - // micromark("_[bar_](/url)"), - // "

_bar_

", - // "should not mismatch inside links (1)" - // ); + assert_eq!( + micromark("_[bar_](/url)"), + "

_bar_

", + "should not mismatch inside links (1)" + ); assert_eq!( micromark_with_options("*", DANGER), -- cgit