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

Chat: brought back syntax highlighting for most common languages #5953

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

dominiccooney
Copy link
Contributor

Authored by @ichim-david in #5874. This branch created to run CI.

Test plan

Ask chat to provide an example program for dart language.
You should now see the dart snippets having syntax highlighting which started missing after
the work done in this pull request:
#5232

Example screenshot with the fix in action:
dart-syntax

Changelog

Chat: brought back syntax highlighting for most common languages

… as dart or scss

- Updated rehype-highlight to ^7.0.0 in orde to get rid of lowlight
   2.9.0 and load only version 3.1.0
- Added dependency on highlight.js since we load these extra
  syntax languages and tslint complains if we don't add it
- As requested in review as it seems there were
  performance issues with rehype-highlight 7.0.0 as
  seen in pull request #5313
… languages from highligh.js

- This way we can trim the bundle even more by importing only languages that
   should be supported
@ichim-david
Copy link

@dominiccooney my original pull request can also run tests as long as someone approves the latest commit
pull-request-approval

Pending test running approval, I would rather have my pull request only where I've written a few comments where I've asked for input which I am still waiting for rather than having this copy.
Regardless thanks for bringing awareness to it and testing it today.

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