You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am currently writing a markdown plugin in TypeScript to process MDX and have encountered a problem:
If I enter <div>Hello <span>World</span></div> into the playground to check the mdast tree, we can see an mdxJsxFlowElement having mdxJsxTextElement and text as children.
But neither the spec nor the TypeScript types allows mdxJsxTextElement and text to be children of mdxJsxFlowElement
So which of the two is correct? Or am I missing something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I am currently writing a markdown plugin in TypeScript to process MDX and have encountered a problem:
<div>Hello <span>World</span></div>
into the playground to check the mdast tree, we can see anmdxJsxFlowElement
havingmdxJsxTextElement
andtext
as children.mdxJsxTextElement
andtext
to be children ofmdxJsxFlowElement
So which of the two is correct? Or am I missing something?
Beta Was this translation helpful? Give feedback.
All reactions