aboutsummaryrefslogtreecommitdiffstats
path: root/tests/heading_setext.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-11 19:49:34 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-11 19:49:34 +0200
commit2ce19d9fd8f75ee1e3d62762e91f5d18303d4d6b (patch)
treead2aa2dc2c96b9de278f6fd5252f1b511c1e07a4 /tests/heading_setext.rs
parentb7bd2b734fae09c40d738fcd57d5ee6876f0f504 (diff)
downloadmarkdown-rs-2ce19d9fd8f75ee1e3d62762e91f5d18303d4d6b.tar.gz
markdown-rs-2ce19d9fd8f75ee1e3d62762e91f5d18303d4d6b.tar.bz2
markdown-rs-2ce19d9fd8f75ee1e3d62762e91f5d18303d4d6b.zip
Add support for lazy lines
Diffstat (limited to 'tests/heading_setext.rs')
-rw-r--r--tests/heading_setext.rs33
1 files changed, 15 insertions, 18 deletions
diff --git a/tests/heading_setext.rs b/tests/heading_setext.rs
index a42b8e5..0e0c34c 100644
--- a/tests/heading_setext.rs
+++ b/tests/heading_setext.rs
@@ -135,12 +135,11 @@ fn heading_setext() {
"should not allow underline to be lazy (1)"
);
- // To do: block quote (lazy).
- // assert_eq!(
- // micromark("> foo\nbar\n==="),
- // "<blockquote>\n<p>foo\nbar\n===</p>\n</blockquote>",
- // "should not allow underline to be lazy (2)"
- // );
+ assert_eq!(
+ micromark("> foo\nbar\n==="),
+ "<blockquote>\n<p>foo\nbar\n===</p>\n</blockquote>",
+ "should not allow underline to be lazy (2)"
+ );
// To do: list.
// assert_eq!(
@@ -247,19 +246,17 @@ fn heading_setext() {
"should prefer a setext heading over an interrupting list"
);
- // To do: block quote (lazy).
- // assert_eq!(
- // micromark("> ===\na"),
- // "<blockquote>\n<p>===\na</p>\n</blockquote>",
- // "should not support lazyness (1)"
- // );
+ assert_eq!(
+ micromark("> ===\na"),
+ "<blockquote>\n<p>===\na</p>\n</blockquote>",
+ "should not support lazyness (1)"
+ );
- // To do: block quote (lazy).
- // assert_eq!(
- // micromark("> a\n==="),
- // "<blockquote>\n<p>a\n===</p>\n</blockquote>",
- // "should not support lazyness (2)"
- // );
+ assert_eq!(
+ micromark("> a\n==="),
+ "<blockquote>\n<p>a\n===</p>\n</blockquote>",
+ "should not support lazyness (2)"
+ );
// To do: turning things off.
// assert_eq!(