diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-09-08 15:46:46 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-09-08 16:30:56 +0200 |
commit | b4256dc2e1352a2b74f29b2650150cc8b57f54ed (patch) | |
tree | 67ddb1b3c99be459fd0fa1ea19b5f89565e56b65 /src/lib.rs | |
parent | 2d24336c61e88e364e63e36db7b0803bc6532159 (diff) | |
download | markdown-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-- | src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -301,6 +301,13 @@ pub struct Constructs { /// ^^^ /// ``` pub math_text: bool, + /// MDX: JSX (flow). + /// + /// ```markdown + /// > | <Component /> + /// ^^^^^^^^^^^^^ + /// ``` + pub mdx_jsx_flow: bool, /// MDX: JSX (text). /// /// ```markdown @@ -349,6 +356,7 @@ impl Default for Constructs { list_item: true, math_flow: false, math_text: false, + mdx_jsx_flow: false, mdx_jsx_text: false, thematic_break: true, } @@ -388,6 +396,7 @@ impl Constructs { code_indented: false, html_flow: false, html_text: false, + mdx_jsx_flow: true, mdx_jsx_text: true, ..Self::default() } |