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

fix: JS in HTML is not highlighted #2551

Conversation

flacial
Copy link
Member

@flacial flacial commented Nov 25, 2022

Closes #2548

Description

JS in HTML syntax doesn't get highlighted. This PR fixes it by changing the extension type to JSX whenever the file's extension is HTML

Before

image

After

image

@vercel
Copy link

vercel bot commented Nov 25, 2022

@flacial is attempting to deploy a commit to the c0d3-prod Team on Vercel.

A member of the Team first needs to authorize it.

@codecov
Copy link

codecov bot commented Nov 25, 2022

Codecov Report

Merging #2551 (d316750) into master (e150015) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master     #2551   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          186       186           
  Lines         3356      3357    +1     
  Branches       903       904    +1     
=========================================
+ Hits          3356      3357    +1     
Impacted Files Coverage Δ
components/DiffView.tsx 100.00% <100.00%> (ø)

@vercel
Copy link

vercel bot commented Nov 29, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
c0d3-app ✅ Ready (Inspect) Visit Preview Nov 29, 2022 at 3:35AM (UTC)

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.

bug: JS in HTML files are not highlighted
2 participants