aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-11 11:01:49 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-11 11:01:49 +0200
commit053a2603e4bd5ec9caf40617b52136e5ef3fcf0a (patch)
tree14719bc0759a3a9039e88368d3c10ace5075e906 /tests
parent30e5f806277d14d5dcab708ccd0ce07a4894c1f9 (diff)
downloadmarkdown-rs-053a2603e4bd5ec9caf40617b52136e5ef3fcf0a.tar.gz
markdown-rs-053a2603e4bd5ec9caf40617b52136e5ef3fcf0a.tar.bz2
markdown-rs-053a2603e4bd5ec9caf40617b52136e5ef3fcf0a.zip
Add improved container exit injection
Diffstat (limited to 'tests')
-rw-r--r--tests/misc_tabs.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/misc_tabs.rs b/tests/misc_tabs.rs
index c5e5c43..da54e59 100644
--- a/tests/misc_tabs.rs
+++ b/tests/misc_tabs.rs
@@ -275,4 +275,12 @@ fn tabs_virtual_spaces() {
"<pre><code> x\n</code></pre>\n",
"should strip 3 spaces from an initial tab in fenced code if the opening fence is indented as such"
);
+
+ assert_eq!(
+ micromark("-\ta\n\n\tb"),
+ "<ul>\n<li>\n<p>a</p>\n<p>\tb</p>\n</li>\n</ul>",
+ // To do: CM.js does not output the tab before `b`. See if that makes sense?
+ // "<ul>\n<li>\n<p>a</p>\n<p>b</p>\n</li>\n</ul>",
+ "should support a part of a tab as a container, and the rest of a tab as flow"
+ );
}