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

Use filetypes over mime-types for syntax highlighting #329

Open
taylor-vann opened this issue Jul 30, 2022 · 0 comments
Open

Use filetypes over mime-types for syntax highlighting #329

taylor-vann opened this issue Jul 30, 2022 · 0 comments
Assignees

Comments

@taylor-vann
Copy link
Collaborator

Non traditional types like tsx default to the application/octect-stream mime-type. During a fetch (initial load) tsx will have a mime-type of application/octect-stream and will not have syntax highlights as a consequence.

Currently, we use mime-types to infer syntax highlighting. However, servers are less than consistent with mime-types.

It is possible to avoid mime-types entirely and instead highlight by file-type.

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