v2 parser can't handle the open curly in JS strings
johno opened this issue · 2 comments
johno commented
Currently the parser doesn't handle curlies in strings. You can test it out on the v2 playground:
# Hello, world!
<Button onClick={e => alert('hi! {')}>
I'm a button!
</Button>
wooorm commented
I’m curious to hear how often this happens in the real world!
When in strings, it’s possible to encode them:
<Button onClick={e => alert('hi! \x7b')}>
<Button onClick={e => alert('hi! \u007b')}>
wooorm commented
Hi all! I’m going to close this as it landed on the main
, the (now default) branch we’re using to gear up to the MDX@2 release.
The reason is so that it’s more clear which issues still need to be solved already and don’t require further work.
Expect another next
release soonish, which might include it, or maybe it’s already released as a beta!
For more info, see #1041.