diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-09-09 15:42:07 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-09-09 15:42:07 +0200 |
commit | 4711b1f0720eb54e458ca5a16cb655013693b628 (patch) | |
tree | de911aa4fee2a8e97104b30b3435c1f17af30140 /src/state.rs | |
parent | 118cc91fd56a9b4c93bec5b1cb4c5f25924d353e (diff) | |
download | markdown-rs-4711b1f0720eb54e458ca5a16cb655013693b628.tar.gz markdown-rs-4711b1f0720eb54e458ca5a16cb655013693b628.tar.bz2 markdown-rs-4711b1f0720eb54e458ca5a16cb655013693b628.zip |
Add support for mdx attribute (value) expressions
Diffstat (limited to '')
-rw-r--r-- | src/state.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs index 2158966..dcabbd7 100644 --- a/src/state.rs +++ b/src/state.rs @@ -448,6 +448,8 @@ pub enum Name { MdxExpressionBefore, MdxExpressionInside, MdxExpressionEolAfter, + MdxJsxAttributeValueExpressionAfter, + MdxJsxAttributeExpressionAfter, } #[allow(clippy::too_many_lines)] @@ -467,6 +469,13 @@ pub fn call(tokenizer: &mut Tokenizer, name: Name) -> State { Name::MdxExpressionInside => construct::partial_mdx_expression::inside, Name::MdxExpressionEolAfter => construct::partial_mdx_expression::eol_after, + Name::MdxJsxAttributeValueExpressionAfter => { + construct::partial_mdx_jsx::attribute_value_expression_after + } + Name::MdxJsxAttributeExpressionAfter => { + construct::partial_mdx_jsx::attribute_expression_after + } + Name::AttentionStart => construct::attention::start, Name::AttentionInside => construct::attention::inside, |