-
Notifications
You must be signed in to change notification settings - Fork 155
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
Code Panel: weird syntax highlighting #1116
Comments
Based on my investigation its looks like, UPDATE: This is a bug in highlight.js and happens because it's picking up the code as regex. I have tried the latest released version (v9.18.1), but it's still not fixed. They plan to release it in v10.0 |
Update: I think my investigation is wrong, ES6 syntax is supported in hljs javascript |
The latest Highlight.js is at v10.7.1, so can be fixed easily. However the code given in Link to reproduce does not exist anymore so can't really test. |
You can reproduce this by specifying the date range to generate the report:
Click on the Code Panel for Metta (ongspxm) to see the weird syntax highlighting. |
RepoSense frontend is using `[email protected]` which has some highlighting issues. These issues were fixed by the following PR in `highlightjs`: highlightjs/highlight.js#2531 Let's update `highlightjs` to `10.7.1` in RepoSense.
Link to reproduce
The text was updated successfully, but these errors were encountered: