aboutsummaryrefslogtreecommitdiffstats
path: root/tests/code_indented.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-14 15:01:03 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-14 15:01:03 +0200
commite2c9664b0d63ec686f9e4625ac11bb21720f74dc (patch)
tree351b09f44bad5dcf9e077407495cd455c67b99c2 /tests/code_indented.rs
parentfb185e801e7d2002948d0b4e91ee06767e13ed00 (diff)
downloadmarkdown-rs-e2c9664b0d63ec686f9e4625ac11bb21720f74dc.tar.gz
markdown-rs-e2c9664b0d63ec686f9e4625ac11bb21720f74dc.tar.bz2
markdown-rs-e2c9664b0d63ec686f9e4625ac11bb21720f74dc.zip
Fix a bunch of container things
* Fix a lot of container code * Fix to prevent code (indented) from interrupting a lazy container * Fix compiling when combining tight paragraphs, empty list items, and html * Fix list items starting w/ blank lines causing loose lists * Fix crash when looking for a previous blank line
Diffstat (limited to '')
-rw-r--r--tests/code_indented.rs33
1 files changed, 15 insertions, 18 deletions
diff --git a/tests/code_indented.rs b/tests/code_indented.rs
index 1df8e28..6735954 100644
--- a/tests/code_indented.rs
+++ b/tests/code_indented.rs
@@ -81,26 +81,23 @@ fn code_indented() {
"should not support lazyness (1)"
);
- // To do: container interrupt.
- // assert_eq!(
- // micromark("> a\n b"),
- // "<blockquote>\n<p>a\nb</p>\n</blockquote>",
- // "should not support lazyness (2)"
- // );
+ assert_eq!(
+ micromark("> a\n b"),
+ "<blockquote>\n<p>a\nb</p>\n</blockquote>",
+ "should not support lazyness (2)"
+ );
- // To do: container interrupt.
- // assert_eq!(
- // micromark("> a\n b"),
- // "<blockquote>\n<p>a\nb</p>\n</blockquote>",
- // "should not support lazyness (3)"
- // );
+ assert_eq!(
+ micromark("> a\n b"),
+ "<blockquote>\n<p>a\nb</p>\n</blockquote>",
+ "should not support lazyness (3)"
+ );
- // To do: container interrupt.
- // assert_eq!(
- // micromark("> a\n b"),
- // "<blockquote>\n<p>a\nb</p>\n</blockquote>",
- // "should not support lazyness (4)"
- // );
+ assert_eq!(
+ micromark("> a\n b"),
+ "<blockquote>\n<p>a\nb</p>\n</blockquote>",
+ "should not support lazyness (4)"
+ );
assert_eq!(
micromark("> a\n b"),