diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-09-08 10:23:03 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-09-08 10:24:04 +0200 |
commit | 31ab712f2e45de567fd699786a49af678a30cd15 (patch) | |
tree | 2ba297a37bfa3cf24ae9ab0c94a2324e975e84fb /src/compiler.rs | |
parent | c3a4865d3ae4fe89d23037742c3a88e08b0f970d (diff) | |
download | markdown-rs-31ab712f2e45de567fd699786a49af678a30cd15.tar.gz markdown-rs-31ab712f2e45de567fd699786a49af678a30cd15.tar.bz2 markdown-rs-31ab712f2e45de567fd699786a49af678a30cd15.zip |
Add tests for mdx jsx (text)
Diffstat (limited to 'src/compiler.rs')
-rw-r--r-- | src/compiler.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index 4f0f958..572cc4e 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -364,6 +364,7 @@ fn enter(context: &mut CompileContext) { | Name::HeadingAtxText | Name::HeadingSetextText | Name::Label + | Name::MdxJsxTextTag | Name::ReferenceString | Name::ResourceTitleString => on_enter_buffer(context), @@ -401,7 +402,10 @@ fn enter(context: &mut CompileContext) { /// Handle [`Exit`][Kind::Exit]. fn exit(context: &mut CompileContext) { match context.events[context.index].name { - Name::CodeFencedFenceMeta | Name::MathFlowFenceMeta | Name::Resource => { + Name::CodeFencedFenceMeta + | Name::MathFlowFenceMeta + | Name::MdxJsxTextTag + | Name::Resource => { on_exit_drop(context); } Name::CharacterEscapeValue | Name::CodeTextData | Name::Data | Name::MathTextData => { |