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/heading_setext.rs | 44 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 24 deletions(-) (limited to 'tests/heading_setext.rs') diff --git a/tests/heading_setext.rs b/tests/heading_setext.rs index e7ee9ff..3c8b892 100644 --- a/tests/heading_setext.rs +++ b/tests/heading_setext.rs @@ -3,33 +3,29 @@ use micromark::micromark; #[test] fn heading_setext() { - // To do: attention. - // assert_eq!( - // micromark("Foo *bar*\n========="), - // "

Foo bar

", - // "should support a heading w/ an equals to (rank of 1)" - // ); + assert_eq!( + micromark("Foo *bar*\n========="), + "

Foo bar

", + "should support a heading w/ an equals to (rank of 1)" + ); - // To do: attention. - // assert_eq!( - // micromark("Foo *bar*\n---------"), - // "

Foo bar

", - // "should support a heading w/ a dash (rank of 2)" - // ); + assert_eq!( + micromark("Foo *bar*\n---------"), + "

Foo bar

", + "should support a heading w/ a dash (rank of 2)" + ); - // To do: attention. - // assert_eq!( - // micromark("Foo *bar\nbaz*\n===="), - // "

Foo bar\nbaz

", - // "should support line endings in setext headings" - // ); + assert_eq!( + micromark("Foo *bar\nbaz*\n===="), + "

Foo bar\nbaz

", + "should support line endings in setext headings" + ); - // To do: attention. - // assert_eq!( - // micromark(" Foo *bar\nbaz*\t\n===="), - // "

Foo bar\nbaz

", - // "should not include initial and final whitespace around content" - // ); + assert_eq!( + micromark(" Foo *bar\nbaz*\t\n===="), + "

Foo bar\nbaz

", + "should not include initial and final whitespace around content" + ); assert_eq!( micromark("Foo\n-------------------------"), -- cgit