diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-08-22 17:32:40 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-08-22 17:32:40 +0200 |
commit | 49b6a4e72516e8b2a8768e761a60a4f461802d69 (patch) | |
tree | 1baeb4eba94d9d49ccfd8bd15d0fb3fefd45a993 /tests/block_quote.rs | |
parent | 8774b207b7251730eaa7fbfe4f144122a472dda0 (diff) | |
download | markdown-rs-49b6a4e72516e8b2a8768e761a60a4f461802d69.tar.gz markdown-rs-49b6a4e72516e8b2a8768e761a60a4f461802d69.tar.bz2 markdown-rs-49b6a4e72516e8b2a8768e761a60a4f461802d69.zip |
Fix lazy paragraph after definition
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)" |