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 JSON in script tags #103

Open
ascorbic opened this issue Jul 11, 2019 · 1 comment
Open

Support JSON in script tags #103

ascorbic opened this issue Jul 11, 2019 · 1 comment

Comments

@ascorbic
Copy link

There are a number of cases where script tags containing JSON are used. These include the new import map spec and JSON-LD microformat blocks. Can I request that the following script types are interpreted as JSON:

  • application/json
  • importmap
  • application/anything+json
  • anything-importmap
@wesbos
Copy link

wesbos commented Mar 28, 2023

Anyone working on this? Importmaps hitting all browsers means this would be a nice feature to have. I tried digging into the regexes, but it's not as simple as adding type="importmap" to the existing script tags, as this needs to to be JSON highlighted, not JS highlighted

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

2 participants