aboutsummaryrefslogtreecommitdiffstats
path: root/tests/mdx_jsx_text.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-08 15:46:46 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-08 16:30:56 +0200
commitb4256dc2e1352a2b74f29b2650150cc8b57f54ed (patch)
tree67ddb1b3c99be459fd0fa1ea19b5f89565e56b65 /tests/mdx_jsx_text.rs
parent2d24336c61e88e364e63e36db7b0803bc6532159 (diff)
downloadmarkdown-rs-b4256dc2e1352a2b74f29b2650150cc8b57f54ed.tar.gz
markdown-rs-b4256dc2e1352a2b74f29b2650150cc8b57f54ed.tar.bz2
markdown-rs-b4256dc2e1352a2b74f29b2650150cc8b57f54ed.zip
Add support for mdx jsx (flow)
Diffstat (limited to '')
-rw-r--r--tests/mdx_jsx_text.rs24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/mdx_jsx_text.rs b/tests/mdx_jsx_text.rs
index 1890aad..782fb6a 100644
--- a/tests/mdx_jsx_text.rs
+++ b/tests/mdx_jsx_text.rs
@@ -812,6 +812,30 @@ fn mdx_jsx_text_complete() -> Result<(), String> {
// );
assert_eq!(
+ micromark_with_options("> a <b\n/> c", &mdx)?,
+ "<blockquote>\n<p>a c</p>\n</blockquote>",
+ "should support lazy text (1)"
+ );
+
+ assert_eq!(
+ micromark_with_options("> a <b c='\nd'/> e", &mdx)?,
+ "<blockquote>\n<p>a e</p>\n</blockquote>",
+ "should support lazy text (2)"
+ );
+
+ assert_eq!(
+ micromark_with_options("> a <b c='d\n'/> e", &mdx)?,
+ "<blockquote>\n<p>a e</p>\n</blockquote>",
+ "should support lazy text (3)"
+ );
+
+ assert_eq!(
+ micromark_with_options("> a <b c='d\ne'/> f", &mdx)?,
+ "<blockquote>\n<p>a f</p>\n</blockquote>",
+ "should support lazy text (4)"
+ );
+
+ assert_eq!(
micromark_with_options("1 < 3", &mdx)?,
"<p>1 &lt; 3</p>",
"should allow `<` followed by markdown whitespace as text in markdown"