aboutsummaryrefslogtreecommitdiffstats
path: root/tests/misc_tabs.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-12 17:53:05 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-12 17:53:05 +0200
commit879fbf500d0aef45cf5811569a53510013440bcd (patch)
tree0e8c0183fa8b6b0060bef780eabc773ab30ee870 /tests/misc_tabs.rs
parent2e3b7abaa9877b658fa4f8f2612acc617dff60bb (diff)
downloadmarkdown-rs-879fbf500d0aef45cf5811569a53510013440bcd.tar.gz
markdown-rs-879fbf500d0aef45cf5811569a53510013440bcd.tar.bz2
markdown-rs-879fbf500d0aef45cf5811569a53510013440bcd.zip
Fix to prefer thematic breaks over lists
Diffstat (limited to 'tests/misc_tabs.rs')
-rw-r--r--tests/misc_tabs.rs24
1 files changed, 11 insertions, 13 deletions
diff --git a/tests/misc_tabs.rs b/tests/misc_tabs.rs
index e7aad07..e82738d 100644
--- a/tests/misc_tabs.rs
+++ b/tests/misc_tabs.rs
@@ -123,19 +123,17 @@ fn tabs_flow() {
"should support tabs in HTML (if whitespace is allowed)"
);
- // To do: list (prefer thematic break).
- // assert_eq!(
- // micromark("*\t*\t*\t"),
- // "<hr />",
- // "should support tabs in thematic breaks"
- // );
-
- // To do: list (prefer thematic break).
- // assert_eq!(
- // micromark("*\t\t*\t\t*\t\t"),
- // "<hr />",
- // "should support arbitrary tabs in thematic breaks"
- // );
+ assert_eq!(
+ micromark("*\t*\t*\t"),
+ "<hr />",
+ "should support tabs in thematic breaks"
+ );
+
+ assert_eq!(
+ micromark("*\t\t*\t\t*\t\t"),
+ "<hr />",
+ "should support arbitrary tabs in thematic breaks"
+ );
}
#[test]