From b150a72975d6e75b96298b3d405afe070271d78b Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Wed, 15 Jun 2022 19:20:43 +0200 Subject: Add support for text in heading (atx) --- tests/heading_atx.rs | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) (limited to 'tests') diff --git a/tests/heading_atx.rs b/tests/heading_atx.rs index 20da860..67351ec 100644 --- a/tests/heading_atx.rs +++ b/tests/heading_atx.rs @@ -148,24 +148,23 @@ fn heading_atx() { "should not support a closing sequence w/o whitespace before it" ); - // Phrasing. - // assert_eq!( - // micromark("### foo \\###"), - // "

foo ###

", - // "should not support an “escaped” closing sequence (1)" - // ); + assert_eq!( + micromark("### foo \\###"), + "

foo ###

", + "should not support an “escaped” closing sequence (1)" + ); - // assert_eq!( - // micromark("## foo #\\##"), - // "

foo ###

", - // "should not support an “escaped” closing sequence (2)" - // ); + assert_eq!( + micromark("## foo #\\##"), + "

foo ###

", + "should not support an “escaped” closing sequence (2)" + ); - // assert_eq!( - // micromark("# foo \\#"), - // "

foo #

", - // "should not support an “escaped” closing sequence (3)" - // ); + assert_eq!( + micromark("# foo \\#"), + "

foo #

", + "should not support an “escaped” closing sequence (3)" + ); assert_eq!( micromark("****\n## foo\n****"), @@ -179,7 +178,6 @@ fn heading_atx() { "should support atx headings interrupting paragraphs" ); - // Line endings. assert_eq!( micromark("## \n#\n### ###"), "

\n

\n

", -- cgit