html.tmbundle icon indicating copy to clipboard operation
html.tmbundle copied to clipboard

Support JSON in script tags

Open ascorbic opened this issue 6 years ago • 4 comments

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

ascorbic avatar Jul 11 '19 16:07 ascorbic

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

wesbos avatar Mar 28 '23 13:03 wesbos

+1

romulof avatar Jul 04 '24 12:07 romulof

+1

lijialiang avatar Aug 30 '24 06:08 lijialiang