From 60ea2fd3a09f10fa28bf48575736b47afebf3221 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 16 Jun 2022 19:04:16 +0200 Subject: Add heading (setext) --- tests/code_indented.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'tests/code_indented.rs') diff --git a/tests/code_indented.rs b/tests/code_indented.rs index f21d761..a7afb21 100644 --- a/tests/code_indented.rs +++ b/tests/code_indented.rs @@ -53,12 +53,11 @@ fn code_indented() { "should support paragraphs directly after indented code" ); - // To do: setext. - // assert_eq!( - // micromark("# Heading\n foo\nHeading\n------\n foo\n----"), - // "

Heading

\n
foo\n
\n

Heading

\n
foo\n
\n
", - // "should mix w/ other content" - // ); + assert_eq!( + micromark("# Heading\n foo\nHeading\n------\n foo\n----"), + "

Heading

\n
foo\n
\n

Heading

\n
foo\n
\n
", + "should mix w/ other content" + ); assert_eq!( micromark(" foo\n bar"), -- cgit