From 10355a403f57c93a074716c785d588c76de5634c Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 9 Jun 2022 13:01:36 +0200 Subject: Add support for indented lines in paragraphs --- tests/code_indented.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'tests/code_indented.rs') diff --git a/tests/code_indented.rs b/tests/code_indented.rs index f5926c0..80dae4b 100644 --- a/tests/code_indented.rs +++ b/tests/code_indented.rs @@ -40,19 +40,18 @@ fn code_indented() { "should support blank lines in indented code (3)" ); - // To do: paragraphs. + // To do: strip whitespace. // assert_eq!( // micromark("Foo\n bar"), // "

Foo\nbar

", // "should not support interrupting paragraphs" // ); - // To do: paragraphs. - // assert_eq!( - // micromark(" foo\nbar"), - // "
foo\n
\n

bar

", - // "should support paragraphs directly after indented code" - // ); + assert_eq!( + micromark(" foo\nbar"), + "
foo\n
\n

bar

", + "should support paragraphs directly after indented code" + ); // To do: setext. // assert_eq!( -- cgit