Skip to content
New issue

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

Support for template strings in JSX expressions in MDX? #44

Open
karlhorky opened this issue Dec 9, 2024 · 0 comments
Open

Support for template strings in JSX expressions in MDX? #44

karlhorky opened this issue Dec 9, 2024 · 0 comments

Comments

@karlhorky
Copy link

Potentially similar to #37

It would be great to be able to use language identifier comments inside of curly brace JSX expressions inside of MDX:

{/* css */`
  em { color: red }
`}

On the MDX side (left side):

  1. The first CSS code inside of the code block is syntax highlighted
  2. The subsequent CSS code in the tagged template strings are not syntax highlighted

Screenshot 2024-12-08 at 12 11 41

Originally I reported this to the MDX VS Code extension:

But it appears that this is not work to be done on their side, but rather on the side of extensions which add the syntax highlighting to commented and tagged template strings, including this extension and also others:

What would be involved in implementing this in the Comment Tagged Templates VS Code extension?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant