html.tmbundle
html.tmbundle copied to clipboard
Support JSON in script tags
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
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
+1
+1