From 4806864e5377a5fef937b3fa02542e620c547969 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 7 Jul 2022 17:21:38 +0200 Subject: Add basic support for block quotes --- tests/heading_setext.rs | 28 +++++++++++++--------------- 1 file changed, 13 insertions(+), 15 deletions(-) (limited to 'tests/heading_setext.rs') diff --git a/tests/heading_setext.rs b/tests/heading_setext.rs index 3c8b892..a42b8e5 100644 --- a/tests/heading_setext.rs +++ b/tests/heading_setext.rs @@ -129,14 +129,13 @@ fn heading_setext() { "should precede over inline constructs (2)" ); - // To do: block quote. - // assert_eq!( - // micromark("> Foo\n---"), - // "
\n

Foo

\n
\n
", - // "should not allow underline to be lazy (1)" - // ); + assert_eq!( + micromark("> Foo\n---"), + "
\n

Foo

\n
\n
", + "should not allow underline to be lazy (1)" + ); - // To do: block quote. + // To do: block quote (lazy). // assert_eq!( // micromark("> foo\nbar\n==="), // "
\n

foo\nbar\n===

\n
", @@ -187,12 +186,11 @@ fn heading_setext() { "should prefer other constructs over setext headings (3)" ); - // To do: block quote. - // assert_eq!( - // micromark("> foo\n-----"), - // "
\n

foo

\n
\n
", - // "should prefer other constructs over setext headings (4)" - // ); + assert_eq!( + micromark("> foo\n-----"), + "
\n

foo

\n
\n
", + "should prefer other constructs over setext headings (4)" + ); assert_eq!( micromark("\\> foo\n------"), @@ -249,14 +247,14 @@ fn heading_setext() { "should prefer a setext heading over an interrupting list" ); - // To do: block quote. + // To do: block quote (lazy). // assert_eq!( // micromark("> ===\na"), // "
\n

===\na

\n
", // "should not support lazyness (1)" // ); - // To do: block quote. + // To do: block quote (lazy). // assert_eq!( // micromark("> a\n==="), // "
\n

a\n===

\n
", -- cgit