aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-08 17:18:13 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-08 17:18:13 +0200
commitac3cfc8253e3d3761c65b3c9db5c990f5b07f161 (patch)
treeec04296d3822349e8d306b2d06919c701e3fd3b7 /tests
parentf5b6e828d5f3b698b150ba4a0831b61574c6cc3b (diff)
downloadmarkdown-rs-ac3cfc8253e3d3761c65b3c9db5c990f5b07f161.tar.gz
markdown-rs-ac3cfc8253e3d3761c65b3c9db5c990f5b07f161.tar.bz2
markdown-rs-ac3cfc8253e3d3761c65b3c9db5c990f5b07f161.zip
Add improved container enter/exit mechanism
Diffstat (limited to 'tests')
-rw-r--r--tests/code_fenced.rs8
-rw-r--r--tests/html_flow.rs11
2 files changed, 9 insertions, 10 deletions
diff --git a/tests/code_fenced.rs b/tests/code_fenced.rs
index 29ef62a..780a78f 100644
--- a/tests/code_fenced.rs
+++ b/tests/code_fenced.rs
@@ -57,7 +57,7 @@ fn code_fenced() {
"should support an eof somewhere in content"
);
- // To do: blockquote (some bug).
+ // To do: blockquote (fix exits, fix compiler).
// assert_eq!(
// micromark("> ```\n> aaa\n\nbbb"),
// "<blockquote>\n<pre><code>aaa\n</code></pre>\n</blockquote>\n<p>bbb</p>",
@@ -227,14 +227,14 @@ fn code_fenced() {
"should not support a closing sequence w/ too much indent, regardless of opening sequence (1)"
);
- // To do: blockquote (some bug).
+ // To do: blockquote (fix exits, fix compiler).
// assert_eq!(
// micromark("> ```\n>\n>\n>\n\na"),
// "<blockquote>\n<pre><code>\n\n\n</code></pre>\n</blockquote>\n<p>a</p>",
// "should not support a closing sequence w/ too much indent, regardless of opening sequence (2)"
// );
- // To do: blockquote (some bug, perhaps compiler).
+ // To do: blockquote (fix exits, fix compiler).
// assert_eq!(
// micromark("> ```a\nb"),
// "<blockquote>\n<pre><code class=\"language-a\"></code></pre>\n</blockquote>\n<p>b</p>",
@@ -247,7 +247,7 @@ fn code_fenced() {
"should not support lazyness (2)"
);
- // To do: blockquote (some bug, also compiler).
+ // To do: blockquote (fix exits, fix compiler).
// assert_eq!(
// micromark("> ```a\n```"),
// "<blockquote>\n<pre><code class=\"language-a\"></code></pre>\n</blockquote>\n<pre><code></code></pre>\n",
diff --git a/tests/html_flow.rs b/tests/html_flow.rs
index 71e7bbe..757f2f3 100644
--- a/tests/html_flow.rs
+++ b/tests/html_flow.rs
@@ -552,12 +552,11 @@ okay.",
"should include everything ’till a blank line"
);
- // To do: blockquote (some bug).
- // assert_eq!(
- // micromark_with_options("> <div>\n> foo\n\nbar", DANGER),
- // "<blockquote>\n<div>\nfoo\n</blockquote>\n<p>bar</p>",
- // "should support basic tags w/o ending in containers (1)"
- // );
+ assert_eq!(
+ micromark_with_options("> <div>\n> foo\n\nbar", DANGER),
+ "<blockquote>\n<div>\nfoo\n</blockquote>\n<p>bar</p>",
+ "should support basic tags w/o ending in containers (1)"
+ );
// To do: list.
// assert_eq!(