From faca28020f4894bdfcf5a4b164ebbc75864d8776 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 4 Jul 2022 12:16:51 +0200 Subject: Add support for attention (emphasis, strong) --- tests/hard_break_trailing.rs | 77 ++++++++++++++++++++------------------------ 1 file changed, 35 insertions(+), 42 deletions(-) (limited to 'tests/hard_break_trailing.rs') diff --git a/tests/hard_break_trailing.rs b/tests/hard_break_trailing.rs index 2a4b534..d67ad37 100644 --- a/tests/hard_break_trailing.rs +++ b/tests/hard_break_trailing.rs @@ -21,19 +21,17 @@ fn hard_break_trailing() { "should support leading spaces after a trailing hard break" ); - // To do: attention. - // assert_eq!( - // micromark("*foo \nbar*"), - // "

foo
\nbar

", - // "should support trailing hard breaks in emphasis" - // ); + assert_eq!( + micromark("*foo \nbar*"), + "

foo
\nbar

", + "should support trailing hard breaks in emphasis" + ); - // To do: attention. - // assert_eq!( - // micromark("*foo\\\nbar*"), - // "

foo
\nbar

", - // "should support escape hard breaks in emphasis" - // ); + assert_eq!( + micromark("*foo\\\nbar*"), + "

foo
\nbar

", + "should support escape hard breaks in emphasis" + ); assert_eq!( micromark("`code \ntext`"), @@ -83,40 +81,35 @@ fn hard_break_trailing() { "should support a line suffix after a replacement character" ); - // To do: attention. - // assert_eq!( - // micromark("*a* \nbb"), - // "

a
\nbb

", - // "should support a hard break after a span" - // ); + assert_eq!( + micromark("*a* \nbb"), + "

a
\nbb

", + "should support a hard break after a span" + ); - // To do: attention. - // assert_eq!( - // micromark("*a*\t\nbb"), - // "

a\nbb

", - // "should support a line suffix after a span" - // ); + assert_eq!( + micromark("*a*\t\nbb"), + "

a\nbb

", + "should support a line suffix after a span" + ); - // To do: attention. - // assert_eq!( - // micromark("*a* \t\nbb"), - // "

a\nbb

", - // "should support a mixed line suffix after a span (1)" - // ); + assert_eq!( + micromark("*a* \t\nbb"), + "

a\nbb

", + "should support a mixed line suffix after a span (1)" + ); - // To do: attention. - // assert_eq!( - // micromark("*a*\t \nbb"), - // "

a\nbb

", - // "should support a mixed line suffix after a span (2)" - // ); + assert_eq!( + micromark("*a*\t \nbb"), + "

a\nbb

", + "should support a mixed line suffix after a span (2)" + ); - // To do: attention. - // assert_eq!( - // micromark("*a* \t \nbb"), - // "

a\nbb

", - // "should support a mixed line suffix after a span (3)" - // ); + assert_eq!( + micromark("*a* \t \nbb"), + "

a\nbb

", + "should support a mixed line suffix after a span (3)" + ); // // To do: turning things off. // assert_eq!( -- cgit