Closed ChristianMurphy closed 3 years ago
Confusion in jsx tags with properties containing a colon alongside spread attributes.
<x y:z {...a} />
https://astexplorer.net/#/gist/4617b3d1f2459fceefc94caa748512d0/548cfbc344430bc9ed21a4cd94825eaddb063686
├── micromark-extension-mdx@0.1.0 └── micromark@2.11.2
v15.2.1
7.0.8
const micromark = require("micromark/lib"); const mdx = require("micromark-extension-mdx"); console.log(micromark("<x y:z {...a} />", "utf-8", { extensions: [mdx()] }));
Content should be parsed
AssertionError [ERR_ASSERTION]: expected exit token to match current token { generatedMessage: false, code: 'ERR_ASSERTION', actual: 'mdxJsxTextTagAttribute', expected: 'mdxJsxFlowTagAttribute', operator: '==' }
Whoops, typo
Subject of the issue
Confusion in jsx tags with properties containing a colon alongside spread attributes.
https://astexplorer.net/#/gist/4617b3d1f2459fceefc94caa748512d0/548cfbc344430bc9ed21a4cd94825eaddb063686
Your environment
v15.2.1
, npm7.0.8
Steps to reproduce
Expected behavior
Content should be parsed
Actual behavior