From b4256dc2e1352a2b74f29b2650150cc8b57f54ed Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 8 Sep 2022 15:46:46 +0200 Subject: Add support for mdx jsx (flow) --- tests/mdx_jsx_text.rs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'tests/mdx_jsx_text.rs') 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 @@ -811,6 +811,30 @@ fn mdx_jsx_text_complete() -> Result<(), String> { // "should support line endings in attribute expressions" // ); + assert_eq!( + micromark_with_options("> a c", &mdx)?, + "
\n

a c

\n
", + "should support lazy text (1)" + ); + + assert_eq!( + micromark_with_options("> a e", &mdx)?, + "
\n

a e

\n
", + "should support lazy text (2)" + ); + + assert_eq!( + micromark_with_options("> a e", &mdx)?, + "
\n

a e

\n
", + "should support lazy text (3)" + ); + + assert_eq!( + micromark_with_options("> a f", &mdx)?, + "
\n

a f

\n
", + "should support lazy text (4)" + ); + assert_eq!( micromark_with_options("1 < 3", &mdx)?, "

1 < 3

", -- cgit