Skip to content

Conversation

samtrion
Copy link
Contributor

Based on the highlighted answer from the Biceps team in the discussion (Azure/bicep#4939), the mimetype was reduced to text/plain.

Based on the highlighted answer from the Biceps team in the discussion (Azure/bicep#4939), the mimetype was reduced to `text/plain`.
@alecthomas
Copy link
Owner

Unfortunately this doesn't make any sense. Chroma would not want text/plain to map to the Bicep lexer. I think the initial mimetype is much more appropriate.

@alecthomas alecthomas closed this Nov 10, 2021
@samtrion
Copy link
Contributor Author

The product group around Azure Biceps does not use a special mimetype and will not submit it at IANA for the time being, as it can be taken from the linked discussion. Therefore the mimetype text/plain should be used.
As long as they are not registered at IANA, they are only used by chroma. However, no application (e.g. IIS, Tomcat, etc.) delivers these mimetypes used by chroma.

@alecthomas
Copy link
Owner

In that case the mime type should be removed. Chrome also uses the MIME type to determine which lexer to use, and text/plain should never resolve to anything but plain text.

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

Successfully merging this pull request may close these issues.

2 participants