We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
```ts const Test: React.FC = () => { return ( <div> <div /> {/* [!code highlight] */} </div> ); }; ```
gets converted to
const Test: React.FC = () => { return ( <div> <div /> {} </div> ); };
I expected no empty brackets {} to remain. I believe {/* comment */} is the only valid syntax for comments inside JSX.
{}
{/* comment */}
The text was updated successfully, but these errors were encountered:
I believe the regex here would have to be adjusted to also capture the curly brackets {}
shiki/packages/transformers/src/transformers/notation-map.ts
Line 27 in eae7391
Sorry, something went wrong.
No branches or pull requests
Validations
Describe the bug
gets converted to
I expected no empty brackets
{}
to remain. I believe{/* comment */}
is the only valid syntax for comments inside JSX.Reproduction
Contributes
The text was updated successfully, but these errors were encountered: