diff options
Diffstat (limited to 'tests/block_quote.rs')
-rw-r--r-- | tests/block_quote.rs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/block_quote.rs b/tests/block_quote.rs index 5c72fb9..be9da40 100644 --- a/tests/block_quote.rs +++ b/tests/block_quote.rs @@ -89,6 +89,18 @@ fn block_quote() { ); assert_eq!( + micromark("> [\na"), + "<blockquote>\n<p>[\na</p>\n</blockquote>", + "should support lazy, definition-like lines" + ); + + assert_eq!( + micromark("> [a]: b\nc"), + "<blockquote>\n<p>c</p>\n</blockquote>", + "should support a definition, followed by a lazy paragraph" + ); + + assert_eq!( micromark(">"), "<blockquote>\n</blockquote>", "should support empty block quotes (1)" |