From 187d51acc953720d79f40e82aabe90ea5d58a8a3 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 5 Jul 2022 15:10:54 +0200 Subject: Fix misnested attention --- tests/attention.rs | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'tests') diff --git a/tests/attention.rs b/tests/attention.rs index 789d860..747bf08 100644 --- a/tests/attention.rs +++ b/tests/attention.rs @@ -725,19 +725,17 @@ fn attention() { ); // Rule 15. - // To do: interleaving attention. - // assert_eq!( - // micromark("*foo _bar* baz_"), - // "

foo _bar baz_

", - // "should not support mismatched emphasis" - // ); + assert_eq!( + micromark("*foo _bar* baz_"), + "

foo _bar baz_

", + "should not support mismatched emphasis" + ); - // To do: interleaving attention. - // assert_eq!( - // micromark("*foo __bar *baz bim__ bam*"), - // "

foo bar *baz bim bam

", - // "should not support mismatched strong emphasis" - // ); + assert_eq!( + micromark("*foo __bar *baz bim__ bam*"), + "

foo bar *baz bim bam

", + "should not support mismatched strong emphasis" + ); // Rule 16. assert_eq!( -- cgit