aboutsummaryrefslogtreecommitdiffstats
path: root/tests/code_indented.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/code_indented.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 '')
-rw-r--r--tests/code_indented.rs44
1 files changed, 21 insertions, 23 deletions
diff --git a/tests/code_indented.rs b/tests/code_indented.rs
index f462792..10281a2 100644
--- a/tests/code_indented.rs
+++ b/tests/code_indented.rs
@@ -16,11 +16,12 @@ fn code_indented() {
// "should prefer list item content over indented code (1)"
// );
- // assert_eq!(
- // micromark("1. foo\n\n - bar"),
- // "<ol>\n<li>\n<p>foo</p>\n<ul>\n<li>bar</li>\n</ul>\n</li>\n</ol>",
- // "should prefer list item content over indented code (2)"
- // );
+ // To do: list.
+ // assert_eq!(
+ // micromark("1. foo\n\n - bar"),
+ // "<ol>\n<li>\n<p>foo</p>\n<ul>\n<li>bar</li>\n</ul>\n</li>\n</ol>",
+ // "should prefer list item content over indented code (2)"
+ // );
assert_eq!(
micromark(" <a/>\n *hi*\n\n - one"),
@@ -82,26 +83,23 @@ fn code_indented() {
"should not support lazyness (1)"
);
- // To do: blockquote (lazy).
- // 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: blockquote (lazy).
- // 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: blockquote (lazy).
- // 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"),