aboutsummaryrefslogtreecommitdiffstats
path: root/tests/html_flow.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-08 13:26:23 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-08 13:26:23 +0200
commitc1b325a6dcf4bb8795dd2e5b2cdb1dcfcf61faf5 (patch)
treea94fc69206c3d493028845030f5d9beb3fce48bd /tests/html_flow.rs
parentbd0cb0d0395abb06941960938aacc3639148a96c (diff)
downloadmarkdown-rs-c1b325a6dcf4bb8795dd2e5b2cdb1dcfcf61faf5.tar.gz
markdown-rs-c1b325a6dcf4bb8795dd2e5b2cdb1dcfcf61faf5.tar.bz2
markdown-rs-c1b325a6dcf4bb8795dd2e5b2cdb1dcfcf61faf5.zip
Fix closing of flow when exiting containers
Diffstat (limited to 'tests/html_flow.rs')
-rw-r--r--tests/html_flow.rs77
1 files changed, 35 insertions, 42 deletions
diff --git a/tests/html_flow.rs b/tests/html_flow.rs
index 796ced4..71e7bbe 100644
--- a/tests/html_flow.rs
+++ b/tests/html_flow.rs
@@ -171,12 +171,11 @@ p {color:blue;}
"should support blank lines in raw"
);
- // To do: block quote (lazy).
- // assert_eq!(
- // micromark_with_options("> <script>\na", DANGER),
- // "<blockquote>\n<script>\n</blockquote>\n<p>a</p>",
- // "should not support lazyness (1)"
- // );
+ assert_eq!(
+ micromark_with_options("> <script>\na", DANGER),
+ "<blockquote>\n<script>\n</blockquote>\n<p>a</p>",
+ "should not support lazyness (1)"
+ );
assert_eq!(
micromark_with_options("> a\n<script>", DANGER),
@@ -270,12 +269,11 @@ fn html_flow_2_comment() {
"should support blank lines in comments"
);
- // To do: blockquote (lazy).
- // assert_eq!(
- // micromark_with_options("> <!--\na", DANGER),
- // "<blockquote>\n<!--\n</blockquote>\n<p>a</p>",
- // "should not support lazyness (1)"
- // );
+ assert_eq!(
+ micromark_with_options("> <!--\na", DANGER),
+ "<blockquote>\n<!--\n</blockquote>\n<p>a</p>",
+ "should not support lazyness (1)"
+ );
assert_eq!(
micromark_with_options("> a\n<!--", DANGER),
@@ -317,12 +315,11 @@ fn html_flow_3_instruction() {
"should support blank lines in instructions"
);
- // To do: blockquote (lazy).
- // assert_eq!(
- // micromark_with_options("> <?\na", DANGER),
- // "<blockquote>\n<?\n</blockquote>\n<p>a</p>",
- // "should not support lazyness (1)"
- // );
+ assert_eq!(
+ micromark_with_options("> <?\na", DANGER),
+ "<blockquote>\n<?\n</blockquote>\n<p>a</p>",
+ "should not support lazyness (1)"
+ );
assert_eq!(
micromark_with_options("> a\n<?", DANGER),
@@ -372,12 +369,11 @@ fn html_flow_4_declaration() {
"should support blank lines in declarations"
);
- // To do: blockquote (lazy).
- // assert_eq!(
- // micromark_with_options("> <!a\nb", DANGER),
- // "<blockquote>\n<!a\n</blockquote>\n<p>b</p>",
- // "should not support lazyness (1)"
- // );
+ assert_eq!(
+ micromark_with_options("> <!a\nb", DANGER),
+ "<blockquote>\n<!a\n</blockquote>\n<p>b</p>",
+ "should not support lazyness (1)"
+ );
assert_eq!(
micromark_with_options("> a\n<!b", DANGER),
@@ -436,12 +432,11 @@ fn html_flow_5_cdata() {
"should support blank lines in cdata"
);
- // To do: blockquote (lazy).
- // assert_eq!(
- // micromark_with_options("> <![CDATA[\na", DANGER),
- // "<blockquote>\n<![CDATA[\n</blockquote>\n<p>a</p>",
- // "should not support lazyness (1)"
- // );
+ assert_eq!(
+ micromark_with_options("> <![CDATA[\na", DANGER),
+ "<blockquote>\n<![CDATA[\n</blockquote>\n<p>a</p>",
+ "should not support lazyness (1)"
+ );
assert_eq!(
micromark_with_options("> a\n<![CDATA[", DANGER),
@@ -715,12 +710,11 @@ okay.",
"should not support blank lines in basic"
);
- // To do: block quote (some bug).
- // assert_eq!(
- // micromark_with_options("> <div\na", DANGER),
- // "<blockquote>\n<div\n</blockquote>\n<p>a</p>",
- // "should not support lazyness (1)"
- // );
+ assert_eq!(
+ micromark_with_options("> <div\na", DANGER),
+ "<blockquote>\n<div\n</blockquote>\n<p>a</p>",
+ "should not support lazyness (1)"
+ );
assert_eq!(
micromark_with_options("> a\n<div", DANGER),
@@ -1019,12 +1013,11 @@ fn html_flow_7_complete() {
"should not support blank lines in complete"
);
- // To do: containers: close flow when closing container.
- // assert_eq!(
- // micromark_with_options("> <a>\n*bar*", DANGER),
- // "<blockquote>\n<a>\n</blockquote>\n<p><em>bar</em></p>",
- // "should not support lazyness (1)"
- // );
+ assert_eq!(
+ micromark_with_options("> <a>\n*bar*", DANGER),
+ "<blockquote>\n<a>\n</blockquote>\n<p><em>bar</em></p>",
+ "should not support lazyness (1)"
+ );
// To do: blockquote (lazy).
// assert_eq!(