aboutsummaryrefslogtreecommitdiffstats
path: root/src/event.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 /src/event.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 'src/event.rs')
-rw-r--r--src/event.rs54
1 files changed, 34 insertions, 20 deletions
diff --git a/src/event.rs b/src/event.rs
index b476d45..31059b0 100644
--- a/src/event.rs
+++ b/src/event.rs
@@ -2732,30 +2732,31 @@ pub enum Name {
ThematicBreakSequence,
// To do: sort.
+ MdxJsxFlowTag,
MdxJsxTextTag,
- MdxJsxTextTagMarker, // void
- MdxJsxTextEsWhitespace, // void
- MdxJsxTextTagClosingMarker, // void
- MdxJsxTextTagName,
- MdxJsxTextTagNamePrimary, // void?
- MdxJsxTextTagNameMemberMarker, // void
- MdxJsxTextTagNamePrefixMarker, // void
- MdxJsxTextTagNameMember, // void
- MdxJsxTextTagNameLocal, // void
- MdxJsxTextTagSelfClosingMarker, // void
- MdxJsxTextTagAttribute,
- MdxJsxTextTagAttributeName,
- MdxJsxTextTagAttributePrimaryName,
- MdxJsxTextTagAttributeNamePrefixMarker, // void
- MdxJsxTextTagAttributeInitializerMarker, // void
- MdxJsxTextTagAttributeNameLocal, // void
- MdxJsxTextTagAttributeValueLiteral,
- MdxJsxTextTagAttributeValueLiteralMarker, // void
- MdxJsxTextTagAttributeValueLiteralValue,
+ MdxJsxTagMarker,
+ MdxJsxTagClosingMarker,
+ MdxJsxTagName,
+ MdxJsxTagNamePrimary,
+ MdxJsxTagNameMemberMarker,
+ MdxJsxTagNamePrefixMarker,
+ MdxJsxTagNameMember,
+ MdxJsxTagNameLocal,
+ MdxJsxTagSelfClosingMarker,
+ MdxJsxTagAttribute,
+ MdxJsxTagAttributeName,
+ MdxJsxTagAttributePrimaryName,
+ MdxJsxTagAttributeNamePrefixMarker,
+ MdxJsxTagAttributeInitializerMarker,
+ MdxJsxTagAttributeNameLocal,
+ MdxJsxTagAttributeValueLiteral,
+ MdxJsxTagAttributeValueLiteralMarker,
+ MdxJsxTagAttributeValueLiteralValue,
+ MdxJsxEsWhitespace,
}
/// List of void events, used to make sure everything is working well.
-pub const VOID_EVENTS: [Name; 60] = [
+pub const VOID_EVENTS: [Name; 73] = [
Name::AttentionSequence,
Name::AutolinkEmail,
Name::AutolinkMarker,
@@ -2810,6 +2811,19 @@ pub const VOID_EVENTS: [Name; 60] = [
Name::MathFlowChunk,
Name::MathTextData,
Name::MathTextSequence,
+ Name::MdxJsxTagMarker,
+ Name::MdxJsxTagClosingMarker,
+ Name::MdxJsxTagNamePrimary,
+ Name::MdxJsxTagNameMemberMarker,
+ Name::MdxJsxTagNamePrefixMarker,
+ Name::MdxJsxTagNameMember,
+ Name::MdxJsxTagNameLocal,
+ Name::MdxJsxTagSelfClosingMarker,
+ Name::MdxJsxTagAttributeNamePrefixMarker,
+ Name::MdxJsxTagAttributeInitializerMarker,
+ Name::MdxJsxTagAttributeNameLocal,
+ Name::MdxJsxTagAttributeValueLiteralMarker,
+ Name::MdxJsxEsWhitespace,
Name::ReferenceMarker,
Name::ResourceMarker,
Name::ResourceTitleMarker,