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
Ah, this is complex. Did some digging and what’s going on is that “blocks” are parsed before “inlines”. When parsing blocks, roughly this happens:
<a>{[ <-- this is not a block because there’s a `{` after it.
'b', <-- just random text
{name: 'c'} <-- found a block! let’s parse the expression; ok `name` is an identifier; wait there’s more? That isn’t a valid expression: throw!
]}</a>
wooorm
added a commit
to micromark/micromark-extension-mdx-expression
that referenced
this issue
Oct 19, 2023
Initial checklist
Affected packages and versions
latest
Link to runnable example
mdx playground
Steps to reproduce
Expected behavior
No crash, as changing
{name: 'c'}
to'c'
works. No reason for that.Actual behavior
Crash
Runtime
No response
Package manager
No response
OS
No response
Build and bundle tools
No response
The text was updated successfully, but these errors were encountered: