aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-25 12:07:04 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-25 12:07:11 +0200
commit2cd3e65fd85b137f4951c5ccfdc259c06d49c80e (patch)
tree360909ed27cf35ede99f9e73c88fcfbcadd11ca2 /tests
parent74ec04655f81eb57a648846b2a77974428497b86 (diff)
downloadmarkdown-rs-2cd3e65fd85b137f4951c5ccfdc259c06d49c80e.tar.gz
markdown-rs-2cd3e65fd85b137f4951c5ccfdc259c06d49c80e.tar.bz2
markdown-rs-2cd3e65fd85b137f4951c5ccfdc259c06d49c80e.zip
Fix lists in MDX
Closes GH-11.
Diffstat (limited to 'tests')
-rw-r--r--tests/mdx_expression_flow.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/mdx_expression_flow.rs b/tests/mdx_expression_flow.rs
index 4281e5d..559e08c 100644
--- a/tests/mdx_expression_flow.rs
+++ b/tests/mdx_expression_flow.rs
@@ -96,6 +96,12 @@ fn mdx_expression_flow_agnostic() -> Result<(), String> {
);
assert_eq!(
+ to_html_with_options("a\n\n* b", &mdx)?,
+ "<p>a</p>\n<ul>\n<li>b</li>\n</ul>",
+ "should support lists after non-expressions (GH-11)"
+ );
+
+ assert_eq!(
to_html_with_options("> {a\nb}", &mdx)
.err()
.unwrap(),